Skip to content

Commit b947c53

Browse files
committed
Merge pull request godotengine#92253 from KoBeWi/hash_zeroth
Fix scene hash not updated when scene is empty
2 parents 7870b28 + d276e8b commit b947c53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/gui/scene_tree_editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,9 @@ void SceneTreeEditor::_update_tree(bool p_scroll_to_selected) {
614614

615615
updating_tree = true;
616616
tree->clear();
617+
last_hash = hash_djb2_one_64(0);
617618
if (get_scene_node()) {
618619
_add_nodes(get_scene_node(), nullptr);
619-
last_hash = hash_djb2_one_64(0);
620620
_compute_hash(get_scene_node(), last_hash);
621621
}
622622
updating_tree = false;

0 commit comments

Comments
 (0)