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 22edef14c3)
This commit is contained in:
Rindbee 2023-07-09 17:01:41 +08:00 committed by Yuri Sizov
parent d6d8f6a637
commit 1c1d4f6264
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ public:
virtual void set_path(const String &p_path, bool p_take_over = false) override; virtual void set_path(const String &p_path, bool p_take_over = false) override;
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
virtual void set_last_modified_time(uint64_t p_time) override { 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); state->set_last_modified_time(p_time);
} }