From 9cc9b45948432e9b74c4152bf90b7843dc6b26e0 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 9 Jul 2016 12:12:03 -0300 Subject: [PATCH] Finally fixes the infamous bug #4444, hoping to never see you again. Closes #4444. (cherry picked from commit b0f0ae072367b061e4ff59b17b920f2d67b41e3a) --- tools/editor/plugins/script_editor_plugin.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 15abaa31d88..524aa550f88 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -838,6 +838,15 @@ void ScriptEditor::_reload_scripts(){ } + uint64_t last_date = script->get_last_modified_time(); + uint64_t date = FileAccess::get_modified_time(script->get_path()); + + //printf("last date: %lli vs date: %lli\n",last_date,date); + if (last_date==date) { + continue; + } + + Ref