Fix last_modified_time on scripts
This commit is contained in:
parent
200b9cde88
commit
213bd4199b
@ -1077,10 +1077,12 @@ Error GDScript::load_source_code(const String &p_path) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
source = s;
|
source = s;
|
||||||
|
path = p_path;
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
source_changed_cache = true;
|
source_changed_cache = true;
|
||||||
#endif
|
set_edited(false);
|
||||||
path = p_path;
|
set_last_modified_time(FileAccess::get_modified_time(path));
|
||||||
|
#endif // TOOLS_ENABLED
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user