Merge pull request #629 from JavaSaBr/fix_problem_with_converting_blend_files
fixed a problem with converting blend file when there are unsupported…
This commit is contained in:
commit
a64175c0f1
@ -42,6 +42,7 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.jme3.asset.AssetInfo;
|
||||
import com.jme3.asset.AssetLoadException;
|
||||
import com.jme3.asset.AssetManager;
|
||||
import com.jme3.asset.AssetNotFoundException;
|
||||
import com.jme3.asset.BlenderKey;
|
||||
@ -486,7 +487,7 @@ public class TextureHelper extends AbstractBlenderHelper {
|
||||
key.setGenerateMips(generateMipmaps);
|
||||
result = assetManager.loadTexture(key);
|
||||
result.setKey(key);
|
||||
} catch (AssetNotFoundException e) {
|
||||
} catch (AssetNotFoundException | AssetLoadException e) {
|
||||
LOGGER.fine(e.getLocalizedMessage());
|
||||
}
|
||||
} else {
|
||||
@ -522,7 +523,7 @@ public class TextureHelper extends AbstractBlenderHelper {
|
||||
// If texture is found return it;
|
||||
return result;
|
||||
}
|
||||
} catch (AssetNotFoundException e) {
|
||||
} catch (AssetNotFoundException | AssetLoadException e) {
|
||||
LOGGER.fine(e.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
@ -532,7 +533,7 @@ public class TextureHelper extends AbstractBlenderHelper {
|
||||
try {
|
||||
TextureKey key = new TextureKey(name);
|
||||
assetManager.loadTexture(key);
|
||||
} catch (AssetNotFoundException e) {
|
||||
} catch (AssetNotFoundException | AssetLoadException e) {
|
||||
LOGGER.fine(e.getLocalizedMessage());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user