From 1c61245990b78a0693b13b465cebbd5d23160425 Mon Sep 17 00:00:00 2001 From: Jihyun Yu Date: Tue, 17 Aug 2021 17:32:23 +0900 Subject: Auto-reload scripts with external editor --- editor/plugins/script_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor/plugins/script_editor_plugin.cpp') diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 226a54b966..bd90fa82f2 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -942,7 +942,10 @@ void ScriptEditor::_res_saved_callback(const Ref &p_res) { } _update_script_names(); + _trigger_live_script_reload(); +} +void ScriptEditor::_trigger_live_script_reload() { if (!pending_auto_reload && auto_reload_running_scripts) { call_deferred(SNAME("_live_auto_reload_running_scripts")); pending_auto_reload = true; -- cgit v1.2.3