mirror of
https://github.com/godotengine/godot
synced 2024-09-05 12:58:29 +00:00
Fix scene hash not updated when scene is empty
This commit is contained in:
parent
8e2141eac5
commit
d276e8ba0b
|
@ -614,9 +614,9 @@ void SceneTreeEditor::_update_tree(bool p_scroll_to_selected) {
|
|||
|
||||
updating_tree = true;
|
||||
tree->clear();
|
||||
last_hash = hash_djb2_one_64(0);
|
||||
if (get_scene_node()) {
|
||||
_add_nodes(get_scene_node(), nullptr);
|
||||
last_hash = hash_djb2_one_64(0);
|
||||
_compute_hash(get_scene_node(), last_hash);
|
||||
}
|
||||
updating_tree = false;
|
||||
|
|
Loading…
Reference in a new issue