Skip to content

Commit 8da49ab

Browse files
committed
Fix "reparent to new node" when node has internal children
1 parent 05d9854 commit 8da49ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)