diff options
author | Omar Shehata <omar.sameh.shehata@gmail.com> | 2023-10-07 22:14:54 -0400 |
---|---|---|
committer | Omar Shehata <omar.sameh.shehata@gmail.com> | 2023-10-07 22:14:54 -0400 |
commit | c25a2d832b3d706f6a1ba6cd5135c8213afe172d (patch) | |
tree | fea34a09b37d95c1826535fb96938b8b04e3834e /editor/plugins/script_editor_plugin.cpp | |
parent | fba341ce44427d9515a581c19a8c98b522cef02b (diff) | |
download | redot-engine-c25a2d832b3d706f6a1ba6cd5135c8213afe172d.tar.gz |
Fix external editor hot reload
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index c540004d3f..ec927f6c5d 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -987,7 +987,7 @@ void ScriptEditor::_res_saved_callback(const Ref<Resource> &p_res) { } _update_script_names(); - _trigger_live_script_reload(); + trigger_live_script_reload(); } void ScriptEditor::_scene_saved_callback(const String &p_path) { @@ -1015,7 +1015,7 @@ void ScriptEditor::_scene_saved_callback(const String &p_path) { } } -void ScriptEditor::_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; |