add option to automatically reload changed scripts
This commit is contained in:
parent
f97582b5e9
commit
6c4e1650fb
1 changed files with 4 additions and 1 deletions
|
@ -630,7 +630,10 @@ bool ScriptEditor::_test_script_times_on_disk() {
|
|||
|
||||
|
||||
if (!all_ok)
|
||||
disk_changed->call_deferred("popup_centered_ratio",0.5);
|
||||
if (bool(EDITOR_DEF("text_editor/autoreload_changed_scripts",false)))
|
||||
script_editor->_reload_scripts();
|
||||
else
|
||||
disk_changed->call_deferred("popup_centered_ratio",0.5);
|
||||
|
||||
return all_ok;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue