Ignore internal children when replacing node
This commit is contained in:
parent
d822fd5322
commit
cd2edfef25
1 changed files with 1 additions and 1 deletions
|
@ -2832,7 +2832,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);
|
||||
|
|
Loading…
Reference in a new issue