diff --git a/scene/gui/container.cpp b/scene/gui/container.cpp index c328022d4fd3..e867fceaf269 100644 --- a/scene/gui/container.cpp +++ b/scene/gui/container.cpp @@ -80,6 +80,7 @@ void Container::remove_child_notify(Node *p_child) { void Container::_sort_children() { if (!is_inside_tree()) { + pending_sort = false; return; }