From 1c1d4f6264afa26b9dc7b58d5b0a56603e943cb3 Mon Sep 17 00:00:00 2001 From: Rindbee Date: Sun, 9 Jul 2023 17:01:41 +0800 Subject: [PATCH] Fix `PackedScene::get_last_modified_time()` always returns `0` The variables operated by `PackedScene::set_last_modified_time()` and `PackedScene::get_last_modified_time()` are different. (cherry picked from commit 22edef14c35b8320890f5e771de571f2ec308334) --- scene/resources/packed_scene.h | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/resources/packed_scene.h b/scene/resources/packed_scene.h index 35799dc1eec..2be3ac08afd 100644 --- a/scene/resources/packed_scene.h +++ b/scene/resources/packed_scene.h @@ -255,6 +255,7 @@ public: virtual void set_path(const String &p_path, bool p_take_over = false) override; #ifdef TOOLS_ENABLED virtual void set_last_modified_time(uint64_t p_time) override { + Resource::set_last_modified_time(p_time); state->set_last_modified_time(p_time); }