[editor only] Fix import library item stuck when mimetype doesn't match (atlas limit exceeds etc.)

This commit is contained in:
fgnm
2023-05-06 17:14:20 +02:00
parent 44679fb3a6
commit f516ec5085
@@ -114,12 +114,16 @@ public class AssetIOManager {
Array<FileHandle> tmp = new Array<>();
tmp.add(file);
boolean assetFound = false;
for (Asset asset : new Array.ArrayIterator<>(assetDescriptors)) {
if (asset.matchType(tmp) > 0) {
asset.asyncImport(tmp, progressHandler, true);
assetFound = true;
break;
}
}
if (!assetFound) progressHandler.progressFailed();
}
private Array<FileHandle> getFilesFromPaths(String[] paths) {