Преглед на файлове

[Editor] Prevent deferred tooltip update crash

Caused by `TreeItem`s being accessed after clearing the tree on reset.
AThousandShips преди 7 месеца
родител
ревизия
4b4bfe7d0e
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      editor/gui/scene_tree_editor.cpp

+ 3 - 0
editor/gui/scene_tree_editor.cpp

@@ -1170,6 +1170,9 @@ void SceneTreeEditor::_compute_hash(Node *p_node, uint64_t &hash) {
 }
 
 void SceneTreeEditor::_reset() {
+	// Stop any waiting change to tooltip.
+	update_node_tooltip_delay->stop();
+
 	tree->clear();
 	node_cache.clear();
 }