Fix preserving actors hierarchy order when performing undo of actor removal

#1751
This commit is contained in:
Wojtek Figat
2024-03-05 16:30:50 +01:00
parent f0c2e65b5c
commit 28da656ed1
5 changed files with 43 additions and 17 deletions

View File

@@ -333,7 +333,7 @@ namespace FlaxEditor.Modules
actorNode.PostSpawn();
// Create undo action
IUndoAction action = new DeleteActorsAction(new List<SceneGraphNode>(1) { actorNode }, true);
IUndoAction action = new DeleteActorsAction(actorNode, true);
if (autoSelect)
{
var before = Selection.ToArray();