1
0
mirror of https://github.com/godotengine/godot synced 2024-07-08 17:10:44 +00:00

Fix last_modified_time on scripts

This commit is contained in:
Yuri Rubinsky 2022-09-12 09:21:00 +03:00
parent 200b9cde88
commit 213bd4199b

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