Fix Global SDF update when changing Draw Modes of the model
Refactor `DrawModes` field in `StaticModel` and `FoliageType` into property with getter/setter #3949
This commit is contained in:
@@ -408,7 +408,8 @@ public:
|
||||
if (GLOBAL_SDF_ACTOR_IS_STATIC(a) && ObjectTypes.Contains(a->GetTypeHandle()))
|
||||
{
|
||||
ScopeWriteLock lock(Locker);
|
||||
OnSceneRenderingDirty(BoundingBox::FromSphere(prevBounds));
|
||||
if (flags != DrawModes && flags != Layer && flags != StaticFlags)
|
||||
OnSceneRenderingDirty(BoundingBox::FromSphere(prevBounds));
|
||||
OnSceneRenderingDirty(a->GetBox());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user