You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Merge pull request #67664 from WindyDarian/fix_dependency_import
Don't try to import unknown dependency from scan
This commit is contained in:
@@ -620,7 +620,12 @@ bool EditorFileSystem::_update_scan_actions() {
|
|||||||
if (_test_for_reimport(full_path, false)) {
|
if (_test_for_reimport(full_path, false)) {
|
||||||
//must reimport
|
//must reimport
|
||||||
reimports.push_back(full_path);
|
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 {
|
} else {
|
||||||
//must not reimport, all was good
|
//must not reimport, all was good
|
||||||
//update modified times, to avoid reimport
|
//update modified times, to avoid reimport
|
||||||
|
|||||||
Reference in New Issue
Block a user