X Tutup
Skip to content

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

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Nikitf777:move-nodes-with-different-parents
Nov 14, 2025
Merged

Allow moving nodes when they have different parents in SceneTreeDock#108168
Repiteo merged 1 commit intogodotengine:masterfrom
Nikitf777:move-nodes-with-different-parents

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 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
@Repiteo Repiteo merged commit 23338d2 into godotengine:master Nov 14, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 14, 2025

Thanks!

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.

3 participants

X Tutup