Fix actor type drag spawn to correctly assign parent.

This commit is contained in:
Chandler Cox
2024-04-27 08:44:20 -05:00
parent c5520f2777
commit 7db20e0411

View File

@@ -575,7 +575,8 @@ namespace FlaxEditor.SceneGraph.GUI
actor.StaticFlags = Actor.StaticFlags;
actor.Name = item.Name;
actor.Transform = Actor.Transform;
ActorNode.Root.Spawn(actor, Actor);
ActorNode.Root.Spawn(actor, newParent);
actor.OrderInParent = newOrder;
}
result = DragDropEffect.Move;
}