FIXED: Issue 515: Blender loader - "-1" bone indices are generated for this model

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9537 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Kae..pl 13 years ago
parent 0ba541ecd1
commit d3452297ce
  1. 6
      engine/src/blender/com/jme3/scene/plugins/blender/animations/ArmatureHelper.java

@ -130,9 +130,9 @@ public class ArmatureHelper extends AbstractBlenderHelper {
int groupIndex = 0;
for (Structure deformGroup : deformGroups) {
String deformGroupName = deformGroup.getFieldValue("name").toString();
Integer boneIndex = this.getBoneIndex(skeleton, deformGroupName);
if (boneIndex != null) {
result.put(Integer.valueOf(groupIndex), boneIndex);
int boneIndex = this.getBoneIndex(skeleton, deformGroupName);
if (boneIndex >= 0) {
result.put(groupIndex, boneIndex);
}
++groupIndex;
}

Loading…
Cancel
Save