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
3.0
rem..om 12 years ago
parent f8de35a9e8
commit df5afb1524
  1. 2
      engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java

@ -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()) {

Loading…
Cancel
Save