summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-11-14 20:30:41 +0100
committerGitHub <noreply@github.com>2018-11-14 20:30:41 +0100
commitc5656b7468e1d001658390d88ec6bb087bc51321 (patch)
treec9d28bfee5c4e9b2f3223157fd9a5e8094c1afd4 /scene/main
parent16022da18793823bf9d3530f1ae9a21501b4faec (diff)
parent3b02cd3e712faf9da27bf77f7ff764d93a17eb6f (diff)
Merge pull request #23564 from endragor/fix-remove-child-ordering
Notify node's moved children after sibling removed
Diffstat (limited to 'scene/main')
-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 ec99c51212..3242068bf7 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;