Fix scene lightmaps removal clearing actors linkage to lightmaps

This commit is contained in:
Wojtek Figat
2025-07-01 08:27:29 +02:00
parent 4e4d380267
commit 12c8bb4f31
3 changed files with 26 additions and 0 deletions

View File

@@ -993,6 +993,12 @@ void Foliage::RemoveAllInstances()
RebuildClusters();
}
void Foliage::RemoveLightmap()
{
for (auto& e : Instances)
e.RemoveLightmap();
}
static float GlobalDensityScale = 1.0f;
float Foliage::GetGlobalDensityScale()