diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 512546372..07d23752c 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -563,7 +563,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