[6397319] master: Fix T50023: Inverse Kinematics angle limits defaulting to 10313.2403124°

Joshua Leung noreply at git.blender.org
Tue Nov 15 23:21:37 CET 2016


Commit: 6397319659cd8304f90f23832d42cdfd1f4f9fb3
Author: Joshua Leung
Date:   Wed Nov 16 11:09:02 2016 +1300
Branches: master
https://developer.blender.org/rB6397319659cd8304f90f23832d42cdfd1f4f9fb3

Fix T50023: Inverse Kinematics angle limits defaulting to 10313.2403124°

Regression from 2.77a. The units for the min/max limits were changed in RNA
but the pose channels were still being initialised with in degrees.

===================================================================

M	source/blender/blenkernel/intern/action.c

===================================================================

diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c
index 470098f..dcbb667 100644
--- a/source/blender/blenkernel/intern/action.c
+++ b/source/blender/blenkernel/intern/action.c
@@ -433,8 +433,8 @@ bPoseChannel *BKE_pose_channel_verify(bPose *pose, const char *name)
 	
 	chan->scaleIn = chan->scaleOut = 1.0f;
 	
-	chan->limitmin[0] = chan->limitmin[1] = chan->limitmin[2] = -180.0f;
-	chan->limitmax[0] = chan->limitmax[1] = chan->limitmax[2] = 180.0f;
+	chan->limitmin[0] = chan->limitmin[1] = chan->limitmin[2] = -M_PI;
+	chan->limitmax[0] = chan->limitmax[1] = chan->limitmax[2] = M_PI;
 	chan->stiffness[0] = chan->stiffness[1] = chan->stiffness[2] = 0.0f;
 	chan->ikrotweight = chan->iklinweight = 0.0f;
 	unit_m4(chan->constinv);




More information about the Bf-blender-cvs mailing list