From 21ae2d5d40337d5f263b19366552eb83e8dae2ef Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 23 May 2025 14:44:53 -0500 Subject: [PATCH] Focus Actor position if no Actor bounding box. --- Source/Editor/Editor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Editor/Editor.cs b/Source/Editor/Editor.cs index 394f907d9..c6ead7a76 100644 --- a/Source/Editor/Editor.cs +++ b/Source/Editor/Editor.cs @@ -1031,6 +1031,8 @@ namespace FlaxEditor { Internal_GetEditorBoxWithChildren(FlaxEngine.Object.GetUnmanagedPtr(actor), out var box); BoundingSphere.FromBox(ref box, out sphere); + if (sphere == BoundingSphere.Empty) + sphere = new BoundingSphere(actor.Position, sphere.Radius); sphere.Radius = Math.Max(sphere.Radius, 15.0f); } else