Fix lightmapper running background tasks forever

This commit is contained in:
RaveYard 2023-09-10 22:01:41 +02:00 committed by Christoph Oelckers
parent 9b3a3c6115
commit 834480995c

View file

@ -96,6 +96,11 @@ void VkLightmap::Raytrace(LevelMesh* level, const TArray<LevelMeshSurface*>& sur
const auto& allSurfaces = surfaces; const auto& allSurfaces = surfaces;
#endif #endif
for (auto& surface : surfaces)
{
surface->needsUpdate = false; // it may have been set to false already, but lightmapper ultimately decides so
}
UploadUniforms(); UploadUniforms();
lastSurfaceCount = allSurfaces.Size(); lastSurfaceCount = allSurfaces.Size();