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! --- core/script_language.h | 1 + modules/gdscript/gd_script.cpp | 107 ++++++++++++++++++++++++++ modules/gdscript/gd_script.h | 1 + tools/editor/plugins/script_editor_plugin.cpp | 13 ++++ tools/editor/plugins/script_editor_plugin.h | 2 + 5 files changed, 124 insertions(+) diff --git a/core/script_language.h b/core/script_language.h index d8b4c61b6c..cbf6d8e116 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -192,6 +192,7 @@ public: virtual Vector debug_get_current_stack_info() { return Vector(); } virtual void reload_all_scripts()=0; + virtual void reload_tool_script(const Ref