File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ namespace OvEditor::Core
235235 void CopyActor (OvCore::ECS::Actor& p_actor);
236236
237237 /* *
238- * Paste the copied actor, optionally as a child of the given parent
238+ * Paste the copied actor next to the given actor (same parent), or at root if null
239239 * @param p_parent
240240 */
241241 void PasteActor (OvCore::ECS::Actor* p_parent = nullptr );
Original file line number Diff line number Diff line change @@ -907,11 +907,11 @@ void OvEditor::Core::EditorActions::PasteActor(OvCore::ECS::Actor* p_parent)
907907 {
908908 auto * destinationParent = p_parent;
909909
910- // Pasting on the copied actor itself falls back to its current parent,
911- // preserving the "duplicate-like" behavior by default .
912- if (destinationParent && destinationParent-> GetGUID () == copiedActor-> GetGUID () )
910+ // Pasted actors are always inserted next to the target actor (same parent) ,
911+ // never as children .
912+ if (destinationParent)
913913 {
914- destinationParent = copiedActor ->GetParent ();
914+ destinationParent = destinationParent ->GetParent ();
915915 }
916916
917917 DuplicateActor (*copiedActor, destinationParent, true );
You can’t perform that action at this time.
0 commit comments