Fixed a IndexOutOfBoundsException when residual weights are present

empirephoenix-patch-1
NemesisMate 8 years ago committed by Rémy Bouquet
parent 893741701b
commit 5d729af1c4
  1. 3
      jme3-blender/src/main/java/com/jme3/scene/plugins/blender/meshes/MeshHelper.java

@ -291,6 +291,8 @@ public class MeshHelper extends AbstractBlenderHelper {
Structure defbase = (Structure) parent.getFieldValue("defbase"); Structure defbase = (Structure) parent.getFieldValue("defbase");
List<String> groupNames = new ArrayList<String>(); List<String> groupNames = new ArrayList<String>();
List<Structure> defs = defbase.evaluateListBase(); List<Structure> defs = defbase.evaluateListBase();
if(!defs.isEmpty()) {
for (Structure def : defs) { for (Structure def : defs) {
groupNames.add(def.getFieldValue("name").toString()); groupNames.add(def.getFieldValue("name").toString());
} }
@ -315,6 +317,7 @@ public class MeshHelper extends AbstractBlenderHelper {
} }
} }
} }
}
return result; return result;
} }

Loading…
Cancel
Save