* 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
This commit is contained in:
parent
f7fdabf9a8
commit
f15dfe3011
@ -327,7 +327,7 @@ public final class OBJLoader implements AssetLoader {
|
|||||||
try {
|
try {
|
||||||
matList = (MaterialList) assetManager.loadAsset(key.getFolder() + name);
|
matList = (MaterialList) assetManager.loadAsset(key.getFolder() + name);
|
||||||
} catch (AssetNotFoundException ex){
|
} 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){
|
if (matList != null){
|
||||||
|
@ -11,4 +11,7 @@ public class AssetNotFoundException extends RuntimeException {
|
|||||||
public AssetNotFoundException(String message){
|
public AssetNotFoundException(String message){
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
public AssetNotFoundException(String message, Exception ex){
|
||||||
|
super(message, ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user