summaryrefslogtreecommitdiffstats
path: root/editor/gui/scene_tree_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-23 08:59:26 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-23 08:59:26 +0200
commitb947c53ddc08d4314b2ce70ca1bc2adb37b83c37 (patch)
tree77dad230b9befa1ded043806b8b0e49432074f40 /editor/gui/scene_tree_editor.cpp
parent7870b28ed39168352ddc2c1ca3c689d6c30680cc (diff)
parentd276e8ba0b46a7a6c32fddd2b31996117420e773 (diff)
downloadredot-engine-b947c53ddc08d4314b2ce70ca1bc2adb37b83c37.tar.gz
Merge pull request #92253 from KoBeWi/hash_zeroth
Fix scene hash not updated when scene is empty
Diffstat (limited to 'editor/gui/scene_tree_editor.cpp')
-rw-r--r--editor/gui/scene_tree_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/gui/scene_tree_editor.cpp b/editor/gui/scene_tree_editor.cpp
index fa0dad41dc..ddf22c46e6 100644
--- a/editor/gui/scene_tree_editor.cpp
+++ b/editor/gui/scene_tree_editor.cpp
@@ -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;