diff options
| author | kobewi <kobewi4e@gmail.com> | 2024-05-22 14:55:39 +0200 |
|---|---|---|
| committer | kobewi <kobewi4e@gmail.com> | 2024-05-22 14:55:39 +0200 |
| commit | d276e8ba0b46a7a6c32fddd2b31996117420e773 (patch) | |
| tree | 8d97d06f9cd51ba4db345a7b652e4b4fa7d22277 | |
| parent | 8e2141eac534f6984bb0bdbcefbd17de27ae0993 (diff) | |
| download | redot-engine-d276e8ba0b46a7a6c32fddd2b31996117420e773.tar.gz | |
Fix scene hash not updated when scene is empty
| -rw-r--r-- | editor/gui/scene_tree_editor.cpp | 2 |
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; |
