From 22edef14c35b8320890f5e771de571f2ec308334 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. --- 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 35799dc1eec1..2be3ac08afdf 100644 --- a/scene/resources/packed_scene.h +++ b/scene/resources/packed_scene.h @@ -255,6 +255,7 @@ class PackedScene : public Resource { 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); }