From a65fa94a2169f7a76c9353d9a8160672e7538ccb Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 1 Feb 2025 19:15:09 +0100 Subject: [PATCH] Update modified time when reloading script --- editor/plugins/script_editor_plugin.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 1a1e5697c2..a6c18d3b31 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