MeshLoader, ended up commenting the material.setKey() when a material resource was not found....couldn't figure the use of it, except crashing upon loading the model...

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10415 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
rem..om 2013-02-19 21:02:44 +00:00
parent f8de35a9e8
commit df5afb1524

View File

@ -233,7 +233,7 @@ public class MeshLoader extends DefaultHandler implements AssetLoader {
if (mat == null) {
logger.log(Level.WARNING, "Cannot locate {0} for model {1}", new Object[]{matName, key});
mat = PlaceholderAssets.getPlaceholderMaterial(assetManager);
mat.setKey(new MaterialKey(matName));
//mat.setKey(new MaterialKey(matName));
}
if (mat.isTransparent()) {