Skip to content

Nicer order when duplicating objects#91

Closed
boxrocket6803 wants to merge 1 commit intoFacepunch:masterfrom
boxrocket6803:shift-drag-order
Closed

Nicer order when duplicating objects#91
boxrocket6803 wants to merge 1 commit intoFacepunch:masterfrom
boxrocket6803:shift-drag-order

Conversation

@boxrocket6803
Copy link
Copy Markdown
Contributor

fixes #973

When duplicating objects, rather than arrange each new copy individually under its source create 'groups' from unbroken chains of objects and place new objects in order under their respective group. This helps keep the order of objects consistent when duplicating and also helps keep the rough correlation between time the object was created and position in the list intact where the existing system tends to create fairly chaotic ordering.

Applies to shift+drag in viewport, the ctrl+d shortcut, and the duplicate option in right click menus

image

before, after
image image

@lolleko
Copy link
Copy Markdown
Contributor

lolleko commented Dec 4, 2025

What happens when you have "gaps" in your selection and duplicate?
(e.g. you selected spline_1, spline4, and then duplicate)

@boxrocket6803
Copy link
Copy Markdown
Contributor Author

the new objects are created under unbroken chains of selected objects
image

@lolleko lolleko added the triaged triaged pull-requests are replicated on the internal sbox repo label Dec 4, 2025
@sboxbot sboxbot added the accepted this pull request was accepted, hurrah! label Dec 4, 2025
@sboxbot
Copy link
Copy Markdown
Contributor

sboxbot commented Dec 4, 2025

This PR has been merged upstream.

@sboxbot sboxbot closed this Dec 4, 2025
@DrakeFruit
Copy link
Copy Markdown
Contributor

this is awesome thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted this pull request was accepted, hurrah! triaged triaged pull-requests are replicated on the internal sbox repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shift dragging multiple GameObjects results in weird ordering

5 participants