Fix missing lights when baking a map with vktool

This commit is contained in:
Magnus Norddahl 2025-05-14 15:08:42 +02:00
commit 5299453486
2 changed files with 4 additions and 1 deletions

View file

@ -53,6 +53,9 @@ void LightmapBuildCmdlet::OnCommand(FArgs args)
Printf("Lightmap is not enabled in this level.\n");
}
if (level.levelMesh)
level.levelMesh->BeginFrame(level);
Printf("Baking lightmaps. Please wait...\n");
uint32_t atlasPixelCount = level.levelMesh->AtlasPixelCount();