瀏覽代碼

Merge pull request #93008 from aaronp64/container_queue_sort

Fix `Container::pending_sort` tracking
Rémi Verschelde 1 年之前
父節點
當前提交
a0bbd398ee
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/container.cpp

+ 1 - 0
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;
 	}