summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWindy Darian <WindyDarian@users.noreply.github.com>2022-10-18 23:42:51 -0700
committerWindy Darian <WindyDarian@users.noreply.github.com>2022-10-19 22:17:36 -0700
commit0463a445c4470509d581747bd272b0a76227c723 (patch)
tree5373a9f08a9ee9daf5ed7393395106f5e7d88804
parent61051a44ccacbe447f14538b5bb4b68a62fc896f (diff)
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
-rw-r--r--editor/editor_file_system.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index c28bb18891..47b5d75dcb 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -619,7 +619,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<String> dependencies = _get_dependencies(full_path);
+ for (const String &dependency_path : dependencies) {
+ if (import_extensions.has(dependency_path.get_extension())) {
+ reimports.push_back(dependency_path);
+ }
+ }
} else {
//must not reimport, all was good
//update modified times, to avoid reimport