From 2e996c8e91ed2a4c389dc640f8c87fb02ed7f1c1 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 23 May 2025 17:11:45 -0500 Subject: [PATCH] Remove redundant call to scene. Fixes error in prefab node filtering. --- Source/Editor/SceneGraph/GUI/ActorTreeNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/SceneGraph/GUI/ActorTreeNode.cs b/Source/Editor/SceneGraph/GUI/ActorTreeNode.cs index bf3f4b830..5f56e918a 100644 --- a/Source/Editor/SceneGraph/GUI/ActorTreeNode.cs +++ b/Source/Editor/SceneGraph/GUI/ActorTreeNode.cs @@ -320,7 +320,7 @@ namespace FlaxEditor.SceneGraph.GUI if (noFilter && actor != null) { // Pick the correct id when inside a prefab window. - var id = actor.HasPrefabLink && actor.Scene.Scene == null ? actor.PrefabObjectID : actor.ID; + var id = actor.HasPrefabLink && actor.Scene == null ? actor.PrefabObjectID : actor.ID; isExpanded = Editor.Instance.ProjectCache.IsExpandedActor(ref id); }