From 83ef9791d48a1fdaa30fc8ffa45012eb568ffbfe Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 7 Dec 2023 11:44:05 +0100 Subject: [PATCH] Fix missing bounds update on SkyLight radius modification --- Source/Engine/Level/Actors/SkyLight.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Level/Actors/SkyLight.cpp b/Source/Engine/Level/Actors/SkyLight.cpp index 93e2a8276..7894ef1c3 100644 --- a/Source/Engine/Level/Actors/SkyLight.cpp +++ b/Source/Engine/Level/Actors/SkyLight.cpp @@ -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)