From 2bfcc15f66c776b38c78fbcd44d330471c78a955 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 18 Jan 2021 15:00:35 +0100 Subject: [PATCH] Add invoking `BoxVolume::OnBoundsChanged` after transform changed --- Source/Engine/Level/Actors/BoxVolume.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Level/Actors/BoxVolume.cpp b/Source/Engine/Level/Actors/BoxVolume.cpp index 6235244bc..91912fa69 100644 --- a/Source/Engine/Level/Actors/BoxVolume.cpp +++ b/Source/Engine/Level/Actors/BoxVolume.cpp @@ -132,8 +132,10 @@ void BoxVolume::OnTransformChanged() // Base Actor::OnTransformChanged(); + const auto prevBounds = _box; OrientedBoundingBox::CreateCentered(Vector3::Zero, _size, _bounds); _bounds.Transform(_transform.GetWorld()); _bounds.GetBoundingBox(_box); BoundingSphere::FromBox(_box, _sphere); + OnBoundsChanged(prevBounds); }