diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-05-12 12:34:31 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-05-12 12:34:31 +0400 |
commit | 754c134e099905d86de4ccbd872a670b52bef3df (patch) | |
tree | 0ef7f54357fc130fd33029f4e2dd78f6b9c7b5df /intern | |
parent | 2f08309ffe0f1a005f4f7e26bc6d9d4b15fbf822 (diff) |
Fix #27279: IK bone rotation limits set to 0 disabled the limit, this was
unintentional, since there is already a toggle to enable/disable it.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/iksolver/intern/IK_QSegment.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/iksolver/intern/IK_QSegment.cpp b/intern/iksolver/intern/IK_QSegment.cpp index 4f05e750e78..237edfd4594 100644 --- a/intern/iksolver/intern/IK_QSegment.cpp +++ b/intern/iksolver/intern/IK_QSegment.cpp @@ -370,7 +370,7 @@ MT_Vector3 IK_QSphericalSegment::Axis(int dof) const void IK_QSphericalSegment::SetLimit(int axis, MT_Scalar lmin, MT_Scalar lmax) { - if (lmin >= lmax) + if (lmin > lmax) return; if (axis == 1) { @@ -613,7 +613,7 @@ void IK_QRevoluteSegment::UpdateAngleApply() void IK_QRevoluteSegment::SetLimit(int axis, MT_Scalar lmin, MT_Scalar lmax) { - if (lmin >= lmax || m_axis != axis) + if (lmin > lmax || m_axis != axis) return; // clamp and convert to axis angle parameters @@ -752,7 +752,7 @@ void IK_QSwingSegment::UpdateAngleApply() void IK_QSwingSegment::SetLimit(int axis, MT_Scalar lmin, MT_Scalar lmax) { - if (lmin >= lmax) + if (lmin > lmax) return; // clamp and convert to axis angle parameters @@ -898,7 +898,7 @@ void IK_QElbowSegment::UpdateAngleApply() void IK_QElbowSegment::SetLimit(int axis, MT_Scalar lmin, MT_Scalar lmax) { - if (lmin >= lmax) + if (lmin > lmax) return; // clamp and convert to axis angle parameters |