Kaynağa Gözat

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
Windy Darian 2 yıl önce
ebeveyn
işleme
0463a445c4
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 6 1
      editor/editor_file_system.cpp

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