Skip not active actors.

This commit is contained in:
Chandler Cox
2025-01-28 16:05:19 -06:00
parent 6461ffbd0d
commit 16ed7272a7

View File

@@ -652,7 +652,7 @@ namespace FlaxEditor.Viewport
var allActors = Level.GetActors<Actor>(true);
foreach (var a in allActors)
{
if (a.HideFlags is HideFlags.DontSelect or HideFlags.FullyHidden || a is EmptyActor || a is Scene)
if (a.HideFlags is HideFlags.DontSelect or HideFlags.FullyHidden || a is EmptyActor || a is Scene || !a.IsActive)
continue;
var actorBox = a.EditorBox;