From 021ec9f1c4a1e6a04b563a81b6f215b71059dd30 Mon Sep 17 00:00:00 2001 From: TheApadayo Date: Tue, 27 Dec 2016 10:42:37 -0500 Subject: [PATCH] [IGfxWorld] Null light maps in import testing --- src/Components/Modules/AssetInterfaces/IGfxWorld.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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()); }