* I fixed a bug this time. For real

* Reset the material list in MeshLoader so state doesn't leak. Fixed incorrect "material not found" errors

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8766 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 13 years ago
parent 9ebbeff328
commit c76ae508ff
  1. 4
      engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java

@ -815,6 +815,10 @@ public class MeshLoader extends DefaultHandler implements AssetLoader {
logger.log(Level.WARNING, "Cannot locate {0} for model {1}", new Object[]{materialKey, key}); logger.log(Level.WARNING, "Cannot locate {0} for model {1}", new Object[]{materialKey, key});
} }
} }
}else{
// Make sure to reset it to null so that previous state
// doesn't leak onto this one
materialList = null;
} }
// If for some reason material list could not be found through // If for some reason material list could not be found through

Loading…
Cancel
Save