From f8f30662d93a46eb4b1ece6d45be28760d5ad58c Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 8 Jun 2016 20:00:02 -0300 Subject: -Ability to reload (and soft reload) tool scripts. Please test! --- tools/editor/plugins/script_editor_plugin.cpp | 13 +++++++++++++ tools/editor/plugins/script_editor_plugin.h | 2 ++ 2 files changed, 15 insertions(+) (limited to 'tools') diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 1833e3844a..d2d1f9e625 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -1411,6 +1411,16 @@ void ScriptEditor::_menu_option(int p_option) { te->set_text(text); + } break; + case FILE_TOOL_RELOAD: + case FILE_TOOL_RELOAD_SOFT: { + + TextEdit *te = current->get_text_edit(); + Ref