Skip to content

Commit 187ac5a

Browse files
sboxbottrende2001
andauthored
Fix 'Open in Editor' not working on hierarchy prefabs (#3504)
Co-authored-by: trende2001 <68961063+trende2001@users.noreply.github.com>
1 parent 6c26b3b commit 187ac5a

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)