Fix old api usage for #4185

This commit is contained in:
2026-09-14 08:30:51 +02:00
parent b586c6a0fb
commit e669e9ca65
57 changed files with 89 additions and 90 deletions
+4 -4
View File
@@ -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