Explorar o código

Fix "reparent to new node" when node has internal children

(cherry picked from commit 8da49ab947df4b02c886480b4c094f157f9cbf51)
RedMser hai 1 ano
pai
achega
02c45088ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/scene_tree_dock.cpp

+ 1 - 1
editor/scene_tree_dock.cpp

@@ -2920,7 +2920,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();
 		}