mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Auto-reload scripts with external editor
This commit is contained in:
@@ -786,7 +786,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("_live_auto_reload_running_scripts");
|
||||
pending_auto_reload = true;
|
||||
|
||||
Reference in New Issue
Block a user