[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27371] trunk/blender/intern/itasc/ Armature.cpp: iTaSC: joint limit are now given directly in radiant, no need to convert.
Benoit Bolsee
benoit.bolsee at online.be
Tue Mar 9 23:44:03 CET 2010
Revision: 27371
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27371
Author: ben2610
Date: 2010-03-09 23:44:03 +0100 (Tue, 09 Mar 2010)
Log Message:
-----------
iTaSC: joint limit are now given directly in radiant, no need to convert.
Modified Paths:
--------------
trunk/blender/intern/itasc/Armature.cpp
Modified: trunk/blender/intern/itasc/Armature.cpp
===================================================================
--- trunk/blender/intern/itasc/Armature.cpp 2010-03-09 19:04:05 UTC (rev 27370)
+++ trunk/blender/intern/itasc/Armature.cpp 2010-03-09 22:44:03 UTC (rev 27371)
@@ -340,11 +340,6 @@
}
if ((joint.getNDof() == 1 && dof > 0) || (joint.getNDof() == 2 && dof > 1))
return -1;
- if (joint.getType() < Joint::TransX || joint.getType() == Joint::Swing) {
- // for rotation joint, the limit is given in degree, convert to radian
- _min *= KDL::deg2rad;
- _max *= KDL::deg2rad;
- }
Joint_struct& p_joint = m_joints[segment_it->second.q_nr+dof];
p_joint.min = _min;
p_joint.max = _max;
More information about the Bf-blender-cvs
mailing list