diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-10-03 12:10:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 12:10:25 +0200 |
commit | 803ccb5c7f306cc456208170ce36ac0847be45b3 (patch) | |
tree | 0ff100528a9f40595043162eb6f24eec4d0ba247 /tools/editor/plugins | |
parent | b675710b4639cca8dd01c5aba50e9f1834fed17e (diff) | |
parent | ac80e68d2f60012f315d268c4a9d70dffb02f901 (diff) |
Merge pull request #6684 from Hinsbart/save_all
Fix "Save All" option in Script editor.
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index fd25843de9..3cd6d8336a 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -755,29 +755,10 @@ void ScriptEditor::_menu_option(int p_option) { } break; case FILE_SAVE_ALL: { - if (!_test_script_times_on_disk()) + if (_test_script_times_on_disk()) return; save_all_scripts(); - -#if 0 - for(int i=0;i<tab_container->get_child_count();i++) { - - ScriptTextEditor *se = tab_container->get_child(i)->cast_to<ScriptTextEditor>(); - if (!se) - continue; - - - Ref<Script> script = se->get_edited_script(); - - if (script->get_path()=="" || script->get_path().find("local://")!=-1 || script->get_path().find("::")!=-1) - continue; //internal script, who cares - - - editor->save_resource( script ); - } - -#endif } break; case FILE_IMPORT_THEME: { file_dialog->set_mode(EditorFileDialog::MODE_OPEN_FILE); |