From e689fe04518c760cf366f2d2c24d08ab0995b1c5 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. (cherry picked from commit 3b02cd3e712faf9da27bf77f7ff764d93a17eb6f) --- scene/main/node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 6ec49348304..e6de2d78f53 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -1435,6 +1435,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;