summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRuslan Mustakov <r.mustakov@gmail.com>2018-11-07 16:31:25 +0700
committerRuslan Mustakov <r.mustakov@gmail.com>2018-11-07 16:31:25 +0700
commit3b02cd3e712faf9da27bf77f7ff764d93a17eb6f (patch)
tree2968f3a8f63c3b54a09797f6f246a201900c3dbc /scene
parentde0d30655859a46eaf711e209fe20d9ca60a60f2 (diff)
Notify node's moved children after sibling removed
Fixes #16213.
Diffstat (limited to 'scene')
-rw-r--r--scene/main/node.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index 9f234f832d..1152bc940f 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -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;