2
0
Эх сурвалжийг харах

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

(cherry picked from commit 8da49ab947df4b02c886480b4c094f157f9cbf51)
RedMser 1 жил өмнө
parent
commit
02c45088ea

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