Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Gilbert <ascotan@gmail.com>2005-12-12 21:46:26 +0300
committerJoseph Gilbert <ascotan@gmail.com>2005-12-12 21:46:26 +0300
commit9ae9527c519716051a26a56c02a9b63af1f827b4 (patch)
treef4ef50f37a681dd2cd4927702ee80d7267eedd91 /source/blender/python/api2_2x/Bone.h
parentd32b100464d3d1778a76ae00354ed5885acd574c (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/Bone.h')
-rw-r--r--source/blender/python/api2_2x/Bone.h78
1 files changed, 5 insertions, 73 deletions
diff --git a/source/blender/python/api2_2x/Bone.h b/source/blender/python/api2_2x/Bone.h
index e534ad65d9a..a99f2bdf393 100644
--- a/source/blender/python/api2_2x/Bone.h
+++ b/source/blender/python/api2_2x/Bone.h
@@ -41,6 +41,7 @@
PyTypeObject EditBone_Type;
PyTypeObject Bone_Type;
//-------------------STRUCT DEFINITION----------------------------
+
typedef struct {
PyObject_HEAD
Bone * bone;
@@ -48,14 +49,13 @@ typedef struct {
typedef struct {
PyObject_HEAD
- struct Bone *temp; //temp tracking
- char parent[32];
+ struct EditBone *editbone;
+ struct EditBone *parent;
char name[32];
float roll;
float head[3];
float tail[3];
int flag;
- float length;
float dist;
float weight;
float xwidth;
@@ -69,76 +69,8 @@ typedef struct {
//-------------------VISIBLE PROTOTYPES-------------------------
PyObject *PyBone_FromBone(struct Bone *bone);
struct Bone *PyBone_AsBone(BPy_Bone *py_Bone);
+PyObject *PyEditBone_FromBone(Bone *bone);
+PyObject *PyEditBone_FromEditBone(struct EditBone *editbone);
#endif
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/*
-#ifndef EXPP_BONE_H
-#define EXPP_BONE_H
-
-#include <Python.h>
-#include "DNA_armature_types.h"
-#include "Mathutils.h"
-
-//--------------------------Python BPy_Bone structure definition.-------
-typedef struct {
- PyObject_HEAD
- //reference to data if bone is linked to an armature
- Bone * bone;
- //list of vars that define the boneclass
- char *name;
- char *parent;
- float roll;
- int flag;
- int boneclass;
- float dist;
- float weight;
- VectorObject *head;
- VectorObject *tail;
- VectorObject *loc;
- VectorObject *dloc;
- VectorObject *size;
- VectorObject *dsize;
- QuaternionObject *quat;
- QuaternionObject *dquat;
- MatrixObject *obmat;
- MatrixObject *parmat;
- MatrixObject *defmat;
- MatrixObject *irestmat;
- MatrixObject *posemat;
-} BPy_Bone;
-
-//------------------------------visible prototypes----------------------
-PyObject *Bone_CreatePyObject( struct Bone *obj );
-int Bone_CheckPyObject( PyObject * py_obj );
-Bone *Bone_FromPyObject( PyObject * py_obj );
-PyObject *Bone_Init( void );
-int updateBoneData( BPy_Bone * self, Bone * parent );
-
-#endif
-
-*/