Update various actor bounds naming and deprecate deprecated methods.

This commit is contained in:
Jake Young
2026-07-26 03:42:48 -04:00
parent 4d589314c8
commit e9707d8607
2 changed files with 61 additions and 10 deletions
+20 -5
View File
@@ -1429,9 +1429,14 @@ void Actor::OnLayerChanged()
BoundingBox Actor::GetBoxWithChildren() const
{
BoundingBox result = GetBox();
return GetBoundingBoxWithChildren();
}
BoundingBox Actor::GetBoundingBoxWithChildren() const
{
BoundingBox result = GetBoundingBox();
for (int32 i = 0; i < Children.Count(); i++)
BoundingBox::Merge(result, Children.Get()[i]->GetBoxWithChildren(), result);
BoundingBox::Merge(result, Children.Get()[i]->GetBoundingBoxWithChildren(), result);
return result;
}
@@ -1439,14 +1444,24 @@ BoundingBox Actor::GetBoxWithChildren() const
BoundingBox Actor::GetEditorBox() const
{
return GetBox();
return GetEditorBoundingBox();
}
BoundingBox Actor::GetEditorBoundingBox() const
{
return GetBoundingBox();
}
BoundingBox Actor::GetEditorBoxChildren() const
{
BoundingBox result = GetEditorBox();
return GetEditorBoundingBoxWithChildren();
}
BoundingBox Actor::GetEditorBoundingBoxWithChildren() const
{
BoundingBox result = GetEditorBoundingBox();
for (int32 i = 0; i < Children.Count(); i++)
BoundingBox::Merge(result, Children.Get()[i]->GetEditorBoxChildren(), result);
BoundingBox::Merge(result, Children.Get()[i]->GetEditorBoundingBoxWithChildren(), result);
return result;
}