Small optimization

This commit is contained in:
davevanegdom
2023-09-23 03:24:19 +02:00
parent 23f4a82bbc
commit 1b84f57a5b
2 changed files with 10 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ namespace FlaxEditor.Windows
bool hasPrefabLink = canEditScene && isSingleActorSelected && actorNode.HasPrefabLink;
if (hasPrefabLink)
{
contextMenu.AddButton("Open Prefab", () => Editor.Prefabs.OpenPrefab());
contextMenu.AddButton("Open Prefab", () => Editor.Prefabs.OpenPrefab(actorNode.Actor.PrefabID));
contextMenu.AddButton("Select Prefab", Editor.Prefabs.SelectPrefab);
contextMenu.AddButton("Break Prefab Link", Editor.Prefabs.BreakLinks);
}