瀏覽代碼

Merge pull request #67664 from WindyDarian/fix_dependency_import

Don't try to import unknown dependency from scan
Rémi Verschelde 2 年之前
父節點
當前提交
c950d174cf
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      editor/editor_file_system.cpp

+ 6 - 1
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