* 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
This commit is contained in:
sha..rd 2011-11-22 03:37:11 +00:00
parent 9ebbeff328
commit c76ae508ff

View File

@ -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