Improve #2100 and fix undo

This commit is contained in:
Wojtek Figat
2024-02-18 00:03:27 +01:00
parent f0f065f983
commit 5e218c8da9
3 changed files with 14 additions and 17 deletions

View File

@@ -132,17 +132,13 @@ namespace FlaxEditor.Windows
b = contextMenu.AddButton("Cut", inputOptions.Cut, Editor.SceneEditing.Cut);
b.Enabled = canEditScene;
// Create a new hierarchy from selected actors
// Create option
contextMenu.AddSeparator();
b = contextMenu.AddButton("Create parent for selected actors", Editor.SceneEditing.CreateParentForSelectedActors);
b.Enabled = canEditScene && hasSthSelected;
// Prefab options
contextMenu.AddSeparator();
b = contextMenu.AddButton("Create Prefab", Editor.Prefabs.CreatePrefab);
b.Enabled = isSingleActorSelected &&
((ActorNode)Editor.SceneEditing.Selection[0]).CanCreatePrefab &&