Allow Editor to reload external changes of scripts
This commit is contained in:
parent
9144457484
commit
c051c44df9
1 changed files with 5 additions and 1 deletions
|
@ -872,8 +872,12 @@ void EditorNode::_resources_changed(const Vector<String> &p_resources) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!res->editor_can_reload_from_file()) {
|
if (!res->editor_can_reload_from_file()) {
|
||||||
|
Ref<Script> scr = res;
|
||||||
|
// Scripts are reloaded via the script editor.
|
||||||
|
if (scr.is_null() || ScriptEditor::get_singleton()->get_open_scripts().has(scr)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!res->get_path().is_resource_file() && !res->get_path().is_absolute_path()) {
|
if (!res->get_path().is_resource_file() && !res->get_path().is_absolute_path()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue