From 0ade6866014b9d4bf8469b4fe06e6a7ef9e82592 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 29 Sep 2020 23:00:34 +0200 Subject: Save the current script when adding a new method via signal connection This makes it possible for external editors to pick up the changes. Most modern editors should reload the file automatically, but some older/lightweight editors may ask the user instead (or only warn after trying to save in the external editor). This closes #41283. --- editor/plugins/script_editor_plugin.h | 1 + 1 file changed, 1 insertion(+) (limited to 'editor/plugins/script_editor_plugin.h') diff --git a/editor/plugins/script_editor_plugin.h b/editor/plugins/script_editor_plugin.h index b2172e7f10..c70fd2e555 100644 --- a/editor/plugins/script_editor_plugin.h +++ b/editor/plugins/script_editor_plugin.h @@ -312,6 +312,7 @@ class ScriptEditor : public PanelContainer { String _get_debug_tooltip(const String &p_text, Node *_se); + void _save_current_script(); void _resave_scripts(const String &p_str); void _reload_scripts(); -- cgit v1.2.3