Fix actor type drag spawn to correctly assign parent.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user