Merge pull request #86745 from KoBeWi/internal_error
Ignore internal children when replacing node
This commit is contained in:
commit
fbaab3cf53
1 changed files with 1 additions and 1 deletions
|
@ -2828,7 +2828,7 @@ void Node::replace_by(Node *p_node, bool p_keep_groups) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Node *parent = data.parent;
|
Node *parent = data.parent;
|
||||||
int index_in_parent = get_index();
|
int index_in_parent = get_index(false);
|
||||||
|
|
||||||
if (data.parent) {
|
if (data.parent) {
|
||||||
parent->remove_child(this);
|
parent->remove_child(this);
|
||||||
|
|
Loading…
Reference in a new issue