You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
[Editor] Prevent deferred tooltip update crash
Caused by `TreeItem`s being accessed after clearing the tree on reset.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user