patch [#30331] Support clang-3.0

from Yasuhiro Fujii (y-fujii)

only small part of the patch for now.
This commit is contained in:
Campbell Barton 2012-02-28 05:19:54 +00:00
parent 6dcbba943b
commit e6c5ff95be

@ -90,8 +90,6 @@ typedef float Vector3[3];
typedef float Vector4[4]; typedef float Vector4[4];
struct IK_Target; struct IK_Target;
typedef void (*ErrorCallback)(const iTaSC::ConstraintValues* values, unsigned int nvalues, IK_Target* iktarget); typedef void (*ErrorCallback)(const iTaSC::ConstraintValues* values, unsigned int nvalues, IK_Target* iktarget);
// For some reason, gcc doesn't find the declaration of this function in linux
void KDL::SetToZero(JntArray& array);
// one structure for each target in the scene // one structure for each target in the scene
struct IK_Target struct IK_Target
@ -1029,7 +1027,7 @@ static void rest_pose(IK_Scene *ikscene)
// assume uniform scaling and take Y scale as general scale for the armature // assume uniform scaling and take Y scale as general scale for the armature
scale = len_v3(ikscene->blArmature->obmat[1]); scale = len_v3(ikscene->blArmature->obmat[1]);
// rest pose is 0 // rest pose is 0
KDL::SetToZero(ikscene->jointArray); SetToZero(ikscene->jointArray);
// except for transY joints // except for transY joints
rot = &ikscene->jointArray(0); rot = &ikscene->jointArray(0);
for(joint=a=0, ikchan = ikscene->channels; a<ikscene->numchan && joint<ikscene->numjoint; ++a, ++ikchan) { for(joint=a=0, ikchan = ikscene->channels; a<ikscene->numchan && joint<ikscene->numjoint; ++a, ++ikchan) {