Merge pull request #23564 from endragor/fix-remove-child-ordering

Notify node's moved children after sibling removed
This commit is contained in:
Juan Linietsky 2018-11-14 20:30:41 +01:00 committed by GitHub
commit c5656b7468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1208,6 +1208,7 @@ void Node::remove_child(Node *p_child) {
for (int i = idx; i < data.children.size(); i++) {
data.children[i]->data.pos = i;
data.children[i]->notification(NOTIFICATION_MOVED_IN_PARENT);
}
p_child->data.parent = NULL;