Skip to content

Allow moving nodes when they have different parents in SceneTreeDock #108168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nikitf777
Copy link
Contributor

Previously SceneTreeDock didn't allow to move selected nodes up and down (Ctrl + Up/Down by default) when they have different parents. The code suggests that this was intentional, but I don't like it. I don't see any issues with moving nodes with different parents.
So to implement this, I just removed the limitation that was there before. Also, to get selected nodes it uses now get_full_selected_node_list) instead of get_top_selected_node_list(), so you can move a node and its children at the same time. This is the only change I'm not sure about. But right now I would prefer this approach over the previous one.

move-nodes-with-different-parents.mp4

@Nikitf777 Nikitf777 requested a review from a team as a code owner July 1, 2025 15:42
@KoBeWi KoBeWi added this to the 4.x milestone Jul 1, 2025
@Nikitf777 Nikitf777 force-pushed the move-nodes-with-different-parents branch from 52be765 to c609f37 Compare July 1, 2025 15:45
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@KoBeWi KoBeWi modified the milestones: 4.x, 4.6 Jul 4, 2025
@Nikitf777 Nikitf777 force-pushed the move-nodes-with-different-parents branch from c609f37 to cde07bf Compare July 5, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants