diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2024-09-20 21:35:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 21:35:08 +0200 |
commit | 621cadcf651b93757d5dbf8969023ae62a16f1a4 (patch) | |
tree | 79efec5d0c0dbfe1c1e1c9b71f04e9c8c2186d28 /editor/editor_node.cpp | |
parent | 2be730a05b7ff221b89c967981f7caee6e164ef0 (diff) | |
parent | 96382204736cbc131fbc2640ba6ba238c53017c0 (diff) | |
download | redot-engine-621cadcf651b93757d5dbf8969023ae62a16f1a4.tar.gz |
Merge pull request #97168 from Hilderin/fix-reloading-scripts-already-in-use
Fix reloading scripts already in use
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 2b4b6a5b7e..44292b4185 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -926,11 +926,7 @@ void EditorNode::_resources_changed(const Vector<String> &p_resources) { } 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()) { continue; |