File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2826,19 +2826,19 @@ void ScriptEditor::_reload_scripts(bool p_refresh_only) {
2826
2826
}
2827
2827
2828
2828
if (!p_refresh_only) {
2829
- uint64_t last_date = edited_res-> get_last_modified_time () ;
2829
+ uint64_t last_date = se-> edited_file_data . last_modified_time ;
2830
2830
uint64_t date = FileAccess::get_modified_time (edited_res->get_path ());
2831
2831
2832
2832
if (last_date == date) {
2833
2833
continue ;
2834
2834
}
2835
+ se->edited_file_data .last_modified_time = date;
2835
2836
2836
2837
Ref<Script> scr = edited_res;
2837
2838
if (scr.is_valid ()) {
2838
2839
Ref<Script> rel_scr = ResourceLoader::load (scr->get_path (), scr->get_class (), ResourceFormatLoader::CACHE_MODE_IGNORE);
2839
2840
ERR_CONTINUE (rel_scr.is_null ());
2840
2841
scr->set_source_code (rel_scr->get_source_code ());
2841
- scr->set_last_modified_time (rel_scr->get_last_modified_time ());
2842
2842
scr->reload (true );
2843
2843
2844
2844
update_docs_from_script (scr);
@@ -2849,7 +2849,6 @@ void ScriptEditor::_reload_scripts(bool p_refresh_only) {
2849
2849
Ref<JSON> rel_json = ResourceLoader::load (json->get_path (), json->get_class (), ResourceFormatLoader::CACHE_MODE_IGNORE);
2850
2850
ERR_CONTINUE (rel_json.is_null ());
2851
2851
json->parse (rel_json->get_parsed_text (), true );
2852
- json->set_last_modified_time (rel_json->get_last_modified_time ());
2853
2852
}
2854
2853
2855
2854
Ref<TextFile> text_file = edited_res;
You can’t perform that action at this time.
0 commit comments