mirror of https://github.com/godotengine/godot
Fix "reparent to new node" when node has internal children
This commit is contained in:
parent
05d985496c
commit
8da49ab947
|
|
@ -2932,7 +2932,7 @@ void SceneTreeDock::_create() {
|
||||||
int original_position = -1;
|
int original_position = -1;
|
||||||
if (only_one_top_node) {
|
if (only_one_top_node) {
|
||||||
parent = top_node->get_parent();
|
parent = top_node->get_parent();
|
||||||
original_position = top_node->get_index();
|
original_position = top_node->get_index(false);
|
||||||
} else {
|
} else {
|
||||||
parent = top_node->get_parent()->get_parent();
|
parent = top_node->get_parent()->get_parent();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue