Merge pull request #65687 from Chaosus/gds_fix_script_time

Fix last_modified_time on scripts
This commit is contained in:
Rémi Verschelde 2022-09-12 09:11:06 +02:00 committed by GitHub
commit 7535c6c163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}