Paste at same level of selected actor parent node instead of as child of selected actor for better behavior.
This commit is contained in:
@@ -503,7 +503,7 @@ namespace FlaxEditor.Modules
|
|||||||
// Set paste target if only one actor is selected and no target provided
|
// Set paste target if only one actor is selected and no target provided
|
||||||
if (pasteTargetActor == null && SelectionCount == 1 && Selection[0] is ActorNode actorNode)
|
if (pasteTargetActor == null && SelectionCount == 1 && Selection[0] is ActorNode actorNode)
|
||||||
{
|
{
|
||||||
pasteTargetActor = actorNode.Actor;
|
pasteTargetActor = actorNode.Actor.Scene == actorNode.Actor ? actorNode.Actor : actorNode.Actor.Parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create paste action
|
// Create paste action
|
||||||
|
|||||||
Reference in New Issue
Block a user