From f026838cbc60ec7eeed45d6d30c22a3b73a57bc0 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 2 Feb 2016 21:10:52 -0300 Subject: [PATCH] -only save scripts if changed, takes less time to run projects and does not confuse you with changed dates. --- tools/editor/plugins/script_editor_plugin.cpp | 17 +++++++++++------ tools/editor/plugins/script_editor_plugin.h | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index e6e90eb0dbf..5b1dd37a619 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -935,6 +935,9 @@ void ScriptEditor::_menu_option(int p_option) { if (!_test_script_times_on_disk()) return; + save_all_scripts(); + +#if 0 for(int i=0;iget_child_count();i++) { ScriptTextEditor *ste = tab_container->get_child(i)->cast_to(); @@ -951,7 +954,7 @@ void ScriptEditor::_menu_option(int p_option) { editor->save_resource( script ); } - +#endif } break; case SEARCH_HELP: { @@ -1938,9 +1941,7 @@ void ScriptEditor::edit(const Ref