diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-09-16 13:33:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-09-16 13:33:09 +0400 |
commit | e6960f3881fc3c1f0672b8b115af8e0e2fc307eb (patch) | |
tree | 9384fed6bceb5a8cb476badbbae8e541a6cb0085 /source/blender/python/api2_2x/Metaball.h | |
parent | 2b7f09b8ea0747cecbd9b3c0fff542a5eeedeea3 (diff) |
Python Metaballs api refactor, based on Mesh and Group modules.
* removed get/set in favor of setsetattrs
* added an element iterator to the metaball data type.
* now accepts vectors and quat for location dimensions and rotation.
and other small changes.
Docs updated shortly at.
http://members.iinet.net.au/~cpbarton/ideasman/BPY_API/Metaball-module.html
other changes
typo in image.c
metaballs constants in buttons_editing
Diffstat (limited to 'source/blender/python/api2_2x/Metaball.h')
-rw-r--r-- | source/blender/python/api2_2x/Metaball.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Metaball.h b/source/blender/python/api2_2x/Metaball.h index 7d3e9272d3e..a01111cc6f7 100644 --- a/source/blender/python/api2_2x/Metaball.h +++ b/source/blender/python/api2_2x/Metaball.h @@ -41,6 +41,7 @@ extern PyTypeObject Metaball_Type; #define BPy_Metaball_Check(v) ((v)->ob_type==&Metaball_Type) + /* Python BPy_Metaball structure definition */ typedef struct { PyObject_HEAD /* required py macro */ @@ -58,6 +59,16 @@ typedef struct { MetaElem * metaelem; } BPy_Metaelem; +extern PyTypeObject MetaElemSeq_Type; + +#define BPy_MetaElemSeq_Check(v) ((v)->ob_type==&MetaElemSeq_Type) + +/* Python BPy_MetaElemSeq structure definition */ +typedef struct { + PyObject_HEAD /* required py macro */ + BPy_Metaball *bpymetaball; /* link to the python group so we can know if its been removed */ + MetaElem * iter; /* so we can iterate over the objects */ +} BPy_MetaElemSeq; /* * prototypes |