Skip to content

Commit

Permalink
Allow Editor to reload external changes of scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nongvantinh committed Jan 26, 2024
1 parent 9144457 commit c051c44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,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;
Expand Down

0 comments on commit c051c44

Please sign in to comment.