From c49ee154870d387ff573c7a6657c361e9f195e28 Mon Sep 17 00:00:00 2001 From: Windy Darian Date: Tue, 18 Oct 2022 23:42:51 -0700 Subject: [PATCH] Don't try to import unknown dependency from scan Only import dependency we know how to import, since custom resource may have .gd in dependency list which doesn't have an importer (cherry picked from commit 0463a445c4470509d581747bd272b0a76227c723) --- editor/editor_file_system.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 27fa98df786..188e895a764 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -549,7 +549,12 @@ bool EditorFileSystem::_update_scan_actions() { if (_test_for_reimport(full_path, false)) { //must reimport reimports.push_back(full_path); - reimports.append_array(_get_dependencies(full_path)); + Vector dependencies = _get_dependencies(full_path); + for (int i = 0; i < dependencies.size(); i++) { + if (import_extensions.has(dependencies[i].get_extension())) { + reimports.push_back(dependencies[i]); + } + } } else { //must not reimport, all was good //update modified times, to avoid reimport