mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
Merge pull request #82113 from nongvantinh/fix-50163
Allow Editor to reload external changes of scripts
This commit is contained in:
commit
e2c5d2fada
@ -870,7 +870,11 @@ void EditorNode::_resources_changed(const Vector<String> &p_resources) {
|
||||
}
|
||||
|
||||
if (!res->editor_can_reload_from_file()) {
|
||||
continue;
|
||||
Ref<Script> scr = res;
|
||||
// Scripts are reloaded via the script editor.
|
||||
if (scr.is_null() || ScriptEditor::get_singleton()->get_open_scripts().has(scr)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (!res->get_path().is_resource_file() && !res->get_path().is_absolute_path()) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user