Merge pull request #1174 from adolson/autoreload-edited-scripts
add option to automatically reload changed scripts
This commit is contained in:
commit
80d0117b83
1 changed files with 5 additions and 1 deletions
|
@ -631,7 +631,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/auto_reload_changed_scripts",false)))
|
||||
script_editor->_reload_scripts();
|
||||
else
|
||||
disk_changed->call_deferred("popup_centered_ratio",0.5);
|
||||
|
||||
return all_ok;
|
||||
}
|
||||
|
@ -1806,6 +1809,7 @@ ScriptEditorPlugin::ScriptEditorPlugin(EditorNode *p_node) {
|
|||
|
||||
script_editor->hide();
|
||||
|
||||
EDITOR_DEF("text_editor/auto_reload_changed_scripts",false);
|
||||
EDITOR_DEF("external_editor/use_external_editor",false);
|
||||
EDITOR_DEF("external_editor/exec_path","");
|
||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING,"external_editor/exec_path",PROPERTY_HINT_GLOBAL_FILE));
|
||||
|
|
Loading…
Reference in a new issue