Merge pull request #86745 from KoBeWi/internal_error

Ignore internal children when replacing node
This commit is contained in:
Rémi Verschelde 2024-01-03 15:48:41 +01:00
commit fbaab3cf53
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -2828,7 +2828,7 @@ void Node::replace_by(Node *p_node, bool p_keep_groups) {
}
Node *parent = data.parent;
int index_in_parent = get_index();
int index_in_parent = get_index(false);
if (data.parent) {
parent->remove_child(this);