* MeshLoader: submesh names were not loaded properly due to incorrect check

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10654 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..RD 12 years ago
parent 2c473b0873
commit f3c53cf916
  1. 2
      engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java

@ -600,7 +600,7 @@ public class MeshLoader extends DefaultHandler implements AssetLoader {
private void startSubmeshName(String indexStr, String nameStr) {
int index = Integer.parseInt(indexStr);
if (geoms.size() >= index) {
if (index >= geoms.size()) {
logger.log(Level.WARNING, "Submesh name index is larger than number of geometries: {0} >= {1}",
new Object[]{index, geoms.size()});
} else {

Loading…
Cancel
Save