Add for prefab

This commit is contained in:
Chandler Cox
2023-07-27 10:49:29 -05:00
parent 10c8454e8f
commit d6bfcbcc3d

View File

@@ -144,7 +144,7 @@ namespace FlaxEditor.Windows.Assets
// 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 && Selection.Count == 1 && Selection[0] is ActorNode actorNode) if (pasteTargetActor == null && Selection.Count == 1 && Selection[0] is ActorNode actorNode)
{ {
pasteTargetActor = actorNode.Actor; pasteTargetActor = actorNode.Actor.IsPrefabRoot ? actorNode.Actor : actorNode.Actor.Parent;
} }
// Create paste action // Create paste action