Fix missing bounds update on SkyLight radius modification

This commit is contained in:
Wojtek Figat
2023-12-07 11:44:05 +01:00
parent 228239632a
commit 83ef9791d4

View File

@@ -99,6 +99,8 @@ void SkyLight::UpdateBounds()
{
_sphere = BoundingSphere(GetPosition(), GetScaledRadius());
BoundingBox::FromSphere(_sphere, _box);
if (_sceneRenderingKey != -1)
GetSceneRendering()->UpdateActor(this, _sceneRenderingKey);
}
void SkyLight::Draw(RenderContext& renderContext)