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