Revert some changes from #3389 that are not relevant for world units

This commit is contained in:
Wojtek Figat
2025-06-03 17:43:01 +02:00
parent fa97229830
commit 8b88def9d0
33 changed files with 84 additions and 83 deletions

View File

@@ -1013,7 +1013,7 @@ bool UpdateFoliageDensityScaling(Actor* actor)
void Foliage::SetGlobalDensityScale(float value)
{
value = Math::Saturate(value);
if (value == GlobalDensityScale)
if (Math::NearEqual(value, GlobalDensityScale))
return;
PROFILE_CPU();