Skip to content

Commit 4043260

Browse files
committed
Fix 'Open in Editor' not working on hierarchy prefabs
1 parent adf9c8c commit 4043260

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

game/addons/tools/Code/Scene/SceneTree/GameObjectNode.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Editor.MapEditor;
2-
using Sandbox;
3-
using static Editor.BaseItemWidget;
1+
using static Editor.BaseItemWidget;
42
namespace Editor;
53

64
partial class GameObjectNode : TreeNode<GameObject>
@@ -569,7 +567,7 @@ public static void AddGameObjectMenuItems( Menu m, TreeNode treeNode )
569567
{
570568
if ( prefabAsset.TryLoadResource<PrefabFile>( out var prefab ) && prefab.IsValid )
571569
{
572-
// TODO EditorScene.LoadFromPrefab( prefab );
570+
EditorScene.OpenPrefab( prefab );
573571
}
574572
} ).Enabled = !prefabAsset.IsProcedural;
575573

0 commit comments

Comments
 (0)