diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-09-12 09:11:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 09:11:06 +0200 |
commit | 7535c6c1636d37a76d79361092887f7dd13283df (patch) | |
tree | 282b4b38d9d793ec358c490aaca058be4ad97759 | |
parent | baded9fe09e3dcb0a1e5c52ffc5436394aa6e38d (diff) | |
parent | 213bd4199b22e109d432bc724f282cfbc17e60a7 (diff) |
Merge pull request #65687 from Chaosus/gds_fix_script_time
Fix last_modified_time on scripts
-rw-r--r-- | modules/gdscript/gdscript.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 10babad378..1cff2181af 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -1077,10 +1077,12 @@ Error GDScript::load_source_code(const String &p_path) { } source = s; + path = p_path; #ifdef TOOLS_ENABLED source_changed_cache = true; -#endif - path = p_path; + set_edited(false); + set_last_modified_time(FileAccess::get_modified_time(path)); +#endif // TOOLS_ENABLED return OK; } |