summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-29 16:48:27 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-29 16:48:27 +0100
commitc950d174cf69a86c3c72a05d9043eae7eb50bac0 (patch)
treee1bb5e0ef73047b59ea1f60af14c01037c3da172 /editor
parent447f6998b1ac90feacbe65f593a24cf5a12026c2 (diff)
parent0463a445c4470509d581747bd272b0a76227c723 (diff)
Merge pull request #67664 from WindyDarian/fix_dependency_import
Don't try to import unknown dependency from scan
Diffstat (limited to 'editor')
-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 a261fc0f33..5d137ce290 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -620,7 +620,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