diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 1a1e5697c2d..a6c18d3b31c 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2826,19 +2826,19 @@ void ScriptEditor::_reload_scripts(bool p_refresh_only) { } if (!p_refresh_only) { - uint64_t last_date = edited_res->get_last_modified_time(); + uint64_t last_date = se->edited_file_data.last_modified_time; uint64_t date = FileAccess::get_modified_time(edited_res->get_path()); if (last_date == date) { continue; } + se->edited_file_data.last_modified_time = date; Ref