mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Auto-reload scripts with external editor
This commit is contained in:
parent
c4e03672e8
commit
1c61245990
3 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue