mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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…
Add table
Add a link
Reference in a new issue