Notify node's moved children after sibling removed

Fixes #16213.

(cherry picked from commit 3b02cd3e71)
This commit is contained in:
Ruslan Mustakov 2018-11-07 16:31:25 +07:00 committed by Rémi Verschelde
parent c658929cf3
commit e689fe0451
1 changed files with 1 additions and 0 deletions

View File

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