Bugfix: include all bones in the chain of the IK constraint if the
specified chain length is zero.
This commit is contained in:
parent
483156f2ba
commit
2d9a1b8737
@ -182,7 +182,7 @@ public class ConstraintDefinitionIK extends ConstraintDefinition {
|
|||||||
if (!useTail) {
|
if (!useTail) {
|
||||||
bone = bone.getParent();
|
bone = bone.getParent();
|
||||||
}
|
}
|
||||||
while (bone != null && this.size() < bonesAffected) {
|
while (bone != null && (bonesAffected <= 0 || this.size() < bonesAffected)) {
|
||||||
BoneContext boneContext = blenderContext.getBoneContext(bone);
|
BoneContext boneContext = blenderContext.getBoneContext(bone);
|
||||||
this.add(boneContext);
|
this.add(boneContext);
|
||||||
alteredOmas.add(boneContext.getBoneOma());
|
alteredOmas.add(boneContext.getBoneOma());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user