From 3b02cd3e712faf9da27bf77f7ff764d93a17eb6f Mon Sep 17 00:00:00 2001 From: Ruslan Mustakov Date: Wed, 7 Nov 2018 16:31:25 +0700 Subject: [PATCH] Notify node's moved children after sibling removed Fixes #16213. --- scene/main/node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 9f234f832d2..1152bc940f6 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;