diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-08-17 19:42:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 19:42:44 +0200 |
commit | aa3909cf5412cc96e4f5958e47f687034bf82150 (patch) | |
tree | 1404a6398bdbc2aeca1f4c4d637f01a150905ffc /editor/plugins/script_editor_plugin.cpp | |
parent | 273d1ca9329aaa849e18f4d3a1f3f461d54dbb41 (diff) | |
parent | 1c61245990b78a0693b13b465cebbd5d23160425 (diff) | |
download | redot-engine-aa3909cf5412cc96e4f5958e47f687034bf82150.tar.gz |
Merge pull request #51729 from yjh0502/ext-reload-master
Auto-reload scripts with external editor
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Resource> &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; |