diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-12-12 21:46:26 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-12-12 21:46:26 +0300 |
commit | 9ae9527c519716051a26a56c02a9b63af1f827b4 (patch) | |
tree | f4ef50f37a681dd2cd4927702ee80d7267eedd91 /source/blender/python/api2_2x/Armature.h | |
parent | d32b100464d3d1778a76ae00354ed5885acd574c (diff) |
- Armature/Bone API for python
* this resolves a number of outstanding issues with the armature api and gets this ready for release
- add/remove bones possible
- rolls work correctly now!
- ik'ing to parent should work
- flags for tip/root/bone selection
- etc.
Diffstat (limited to 'source/blender/python/api2_2x/Armature.h')
-rw-r--r-- | source/blender/python/api2_2x/Armature.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/Armature.h b/source/blender/python/api2_2x/Armature.h index 473a2392931..4d14b41fdc8 100644 --- a/source/blender/python/api2_2x/Armature.h +++ b/source/blender/python/api2_2x/Armature.h @@ -43,18 +43,19 @@ PyObject *Armature_Init( void ); PyTypeObject Armature_Type; PyTypeObject BonesDict_Type; //-------------------STRUCT DEFINITION--------------------------- - typedef struct { PyObject_HEAD - PyObject *dict; - PyObject *editBoneDict; - short editmode_flag; //1 = in , 0 = not in + PyObject *bonesMap; //wrapper for bones + PyObject *editbonesMap; //wrapper for editbones + ListBase *bones; //pointer to armature->bonebase + ListBase editbones; //allocated list of EditBones + short editmode_flag; //1 = in , 0 = not in } BPy_BonesDict; typedef struct { PyObject_HEAD struct bArmature * armature; - PyObject *Bones; + BPy_BonesDict *Bones; //BPy_BonesDict } BPy_Armature; //-------------------VISIBLE PROTOTYPES------------------------- |