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.
This commit is contained in:
Rindbee 2023-07-09 17:01:41 +08:00
parent 83cc5d4914
commit 22edef14c3
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);
} }