From b0f0ae072367b061e4ff59b17b920f2d67b41e3a 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. --- 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 d7d495ff5dd..3b095d15f9d 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -874,6 +874,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