Fix old api usage for #4185
This commit is contained in:
@@ -396,7 +396,7 @@ public:
|
||||
void OnSceneRenderingAddActor(Actor* a) override
|
||||
{
|
||||
if (a->HasStaticFlag(StaticFlags::Shadow))
|
||||
DirtyStaticBounds(a->GetSphere());
|
||||
DirtyStaticBounds(a->GetBoundingSphere());
|
||||
}
|
||||
|
||||
void OnSceneRenderingUpdateActor(Actor* a, const BoundingSphere& prevBounds, UpdateFlags flags) override
|
||||
@@ -405,7 +405,7 @@ public:
|
||||
if (a->HasStaticFlag(StaticFlags::Shadow))
|
||||
{
|
||||
// TODO: skip actors that don't cast shadows (eg. particles)
|
||||
BoundingSphere bounds = a->GetSphere();
|
||||
BoundingSphere bounds = a->GetBoundingSphere();
|
||||
if (bounds != prevBounds)
|
||||
{
|
||||
// Avoid dirtying twice when bounds are close to each other
|
||||
@@ -418,14 +418,14 @@ public:
|
||||
}
|
||||
else if (flags & StaticFlags)
|
||||
{
|
||||
DirtyStaticBounds(a->GetSphere());
|
||||
DirtyStaticBounds(a->GetBoundingSphere());
|
||||
}
|
||||
}
|
||||
|
||||
void OnSceneRenderingRemoveActor(Actor* a) override
|
||||
{
|
||||
if (a->HasStaticFlag(StaticFlags::Shadow))
|
||||
DirtyStaticBounds(a->GetSphere());
|
||||
DirtyStaticBounds(a->GetBoundingSphere());
|
||||
}
|
||||
|
||||
void OnSceneRenderingClear(SceneRendering* scene) override
|
||||
|
||||
Reference in New Issue
Block a user