diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2004-05-25 06:48:02 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2004-05-25 06:48:02 +0400 |
commit | 130878697436aeae0fe06fbf249dd6b483f2e0f5 (patch) | |
tree | 4d3a24c6f4740407b56b086bfe3550e9287aa5aa /source/blender/python/api2_2x/Armature.c | |
parent | cfda234450f9764850008990b2b39e0355a4ca2c (diff) |
- added Boneclass support
- ability to get a bonespace/worldspace bone matrix
- get ik flag
- some tweaking to matrix updates for addBone()
Diffstat (limited to 'source/blender/python/api2_2x/Armature.c')
-rw-r--r-- | source/blender/python/api2_2x/Armature.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c index 906425722fd..557f30b114a 100644 --- a/source/blender/python/api2_2x/Armature.c +++ b/source/blender/python/api2_2x/Armature.c @@ -570,14 +570,18 @@ static PyObject *Armature_addBone(BPy_Armature *self, PyObject *args) Mat4Invert (iM_parentRest, M_boneObjectspace); //transformation of local bone - Mat4MulVecfl(iM_parentRest, py_bone->bone->head); Mat4MulVecfl(iM_parentRest, py_bone->bone->tail); + Mat4MulVecfl(iM_parentRest, py_bone->bone->head); }else //no parent.... BLI_addtail (&self->armature->bonebase,py_bone->bone); - precalc_bonelist_irestmats(&self->armature->bonebase); + //rebuild_bone_parent_matrix(py_bone->bone); + precalc_bonelist_irestmats(&self->armature->bonebase); + precalc_armature_posemats(self->armature); + precalc_bone_defmat (py_bone->bone); + Py_INCREF(Py_None); return Py_None; } |