* Fixed issue with an exception getting silenced when MTL was loaded for an OBJ file

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8582 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 13 years ago
parent f7fdabf9a8
commit f15dfe3011
  1. 2
      engine/src/core-plugins/com/jme3/scene/plugins/OBJLoader.java
  2. 3
      engine/src/core/com/jme3/asset/AssetNotFoundException.java

@ -327,7 +327,7 @@ public final class OBJLoader implements AssetLoader {
try {
matList = (MaterialList) assetManager.loadAsset(key.getFolder() + name);
} catch (AssetNotFoundException ex){
throw new AssetNotFoundException("Cannot find material " + name + " for model " + key.getName());
throw new AssetNotFoundException("Cannot load or find material " + name + " for model " + key.getName(), ex);
}
if (matList != null){

@ -11,4 +11,7 @@ public class AssetNotFoundException extends RuntimeException {
public AssetNotFoundException(String message){
super(message);
}
public AssetNotFoundException(String message, Exception ex){
super(message, ex);
}
}

Loading…
Cancel
Save