Skip to content

Commit 383a907

Browse files
committed
Merge pull request godotengine#96646 from RedMser/reparent-internal
Fix "reparent to new node" when node has internal children
2 parents 85dd654 + eb3a497 commit 383a907

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

editor/scene_tree_dock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2932,7 +2932,7 @@ void SceneTreeDock::_create() {
29322932
int original_position = -1;
29332933
if (only_one_top_node) {
29342934
parent = top_node->get_parent();
2935-
original_position = top_node->get_index();
2935+
original_position = top_node->get_index(false);
29362936
} else {
29372937
parent = top_node->get_parent()->get_parent();
29382938
}

0 commit comments

Comments
 (0)