Fix missing bounds update on SkyLight radius modification
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user