You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Merge pull request #1174 from adolson/autoreload-edited-scripts
add option to automatically reload changed scripts
This commit is contained in:
@@ -631,7 +631,10 @@ bool ScriptEditor::_test_script_times_on_disk() {
|
|||||||
|
|
||||||
|
|
||||||
if (!all_ok)
|
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;
|
return all_ok;
|
||||||
}
|
}
|
||||||
@@ -1806,6 +1809,7 @@ ScriptEditorPlugin::ScriptEditorPlugin(EditorNode *p_node) {
|
|||||||
|
|
||||||
script_editor->hide();
|
script_editor->hide();
|
||||||
|
|
||||||
|
EDITOR_DEF("text_editor/auto_reload_changed_scripts",false);
|
||||||
EDITOR_DEF("external_editor/use_external_editor",false);
|
EDITOR_DEF("external_editor/use_external_editor",false);
|
||||||
EDITOR_DEF("external_editor/exec_path","");
|
EDITOR_DEF("external_editor/exec_path","");
|
||||||
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING,"external_editor/exec_path",PROPERTY_HINT_GLOBAL_FILE));
|
EditorSettings::get_singleton()->add_property_hint(PropertyInfo(Variant::STRING,"external_editor/exec_path",PROPERTY_HINT_GLOBAL_FILE));
|
||||||
|
|||||||
Reference in New Issue
Block a user