diff --git a/src/Components/Modules/AssetInterfaces/IGfxWorld.cpp b/src/Components/Modules/AssetInterfaces/IGfxWorld.cpp index 75963d60..fa581e84 100644 --- a/src/Components/Modules/AssetInterfaces/IGfxWorld.cpp +++ b/src/Components/Modules/AssetInterfaces/IGfxWorld.cpp @@ -63,10 +63,10 @@ namespace Assets map->dpvsPlanes.nodes = reader.readArray(map->nodeCount); map->dpvsPlanes.sceneEntCellBits = reinterpret_cast(reader.readArray(map->dpvsPlanes.cellCount << 11)); map->aabbTreeCounts = reader.readArray(map->dpvsPlanes.cellCount); - + //map->aabbTrees = reader.readArray(map->dpvsPlanes.cellCount); map->aabbTrees = builder->getAllocator()->allocateArray(map->dpvsPlanes.cellCount); - + for (int i = 0; i < map->dpvsPlanes.cellCount; ++i) { map->aabbTrees[i].aabbTree = reader.readArray(map->aabbTreeCounts[i].aabbTreeCount); @@ -139,6 +139,10 @@ namespace Assets map->draw.reflectionProbes = 0; map->draw.reflectionProbeTextures = 0; + map->draw.lightmapCount = 0; + map->draw.lightmapPrimaryTextures = 0; + map->draw.lightmapSecondaryTextures = 0; + //Components::Logger::Error("Missing GfxMap %s... you can't make them yet you idiot.", name.data()); }