Fix lightmapper running background tasks forever
This commit is contained in:
parent
9ef93da6de
commit
c9fccc53ec
1 changed files with 5 additions and 0 deletions
|
|
@ -95,6 +95,11 @@ void VkLightmap::Raytrace(LevelMesh* level, const TArray<LevelMeshSurface*>& sur
|
|||
const auto& allSurfaces = surfaces;
|
||||
#endif
|
||||
|
||||
for (auto& surface : surfaces)
|
||||
{
|
||||
surface->needsUpdate = false; // it may have been set to false already, but lightmapper ultimately decides so
|
||||
}
|
||||
|
||||
UploadUniforms();
|
||||
|
||||
lastSurfaceCount = allSurfaces.Size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue