Skip to content

Commit

Permalink
Merge pull request godotengine#92253 from KoBeWi/hash_zeroth
Browse files Browse the repository at this point in the history
Fix scene hash not updated when scene is empty
  • Loading branch information
akien-mga committed May 23, 2024
2 parents 7870b28 + d276e8b commit b947c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/gui/scene_tree_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b947c53

Please sign in to comment.