Fixed mesh.xml material loading where model key was set as the material key preventing further loading when this file was saved as a j3o

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10413 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
rem..om 12 years ago
parent bc36506776
commit b81ac2be61
  1. 4
      engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java

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

Loading…
Cancel
Save