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();

View file

@ -3046,7 +3046,7 @@ bool MapLoader::LoadLightmap(MapData* map)
int version = fr.ReadInt32();
if (version < LIGHTMAPVER)
{
Printf(PRINT_HIGH, "LoadLightmap: This is an old unsupported version of the lightmap lump. Please rebuild the map with the console commands 'deletelightmap', and then 'savelightmap'.\n");
Printf(PRINT_HIGH, "LoadLightmap: This is an old unsupported version of the lightmap lump. Please rebuild the map with %s.\n", TOOLNAMELOWERCASE);
return false;
}
else if (version != LIGHTMAPVER)