From 8da49ab947df4b02c886480b4c094f157f9cbf51 Mon Sep 17 00:00:00 2001 From: RedMser Date: Fri, 6 Sep 2024 13:13:40 +0200 Subject: [PATCH] Fix "reparent to new node" when node has internal children --- editor/scene_tree_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index ed64ccfa4c3..add52ce5665 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2932,7 +2932,7 @@ void SceneTreeDock::_create() { int original_position = -1; if (only_one_top_node) { parent = top_node->get_parent(); - original_position = top_node->get_index(); + original_position = top_node->get_index(false); } else { parent = top_node->get_parent()->get_parent(); }