diff options
Diffstat (limited to 'source/blender/python/api2_2x/bpy_types.h')
-rw-r--r-- | source/blender/python/api2_2x/bpy_types.h | 118 |
1 files changed, 48 insertions, 70 deletions
diff --git a/source/blender/python/api2_2x/bpy_types.h b/source/blender/python/api2_2x/bpy_types.h index b7a084f2c3a..2c409d4ab78 100644 --- a/source/blender/python/api2_2x/bpy_types.h +++ b/source/blender/python/api2_2x/bpy_types.h @@ -53,13 +53,11 @@ extern PyTypeObject Camera_Type; ((v)->ob_type == &Camera_Type) /* for type checking */ /* Python BPy_Camera structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - Camera * camera; +typedef struct { + PyObject_HEAD /* required py macro */ + Camera * camera; -} -BPy_Camera; +} BPy_Camera; /*****************************************************************************/ /* Lamp Data */ @@ -70,13 +68,11 @@ extern PyTypeObject Lamp_Type; ((v)->ob_type == &Lamp_Type) /* for type checking */ /* Python BPy_Lamp structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - Lamp * lamp; - BPy_rgbTuple *color; -} -BPy_Lamp; +typedef struct { + PyObject_HEAD /* required py macro */ + Lamp * lamp; + BPy_rgbTuple *color; +} BPy_Lamp; /*****************************************************************************/ /* Ipo Data */ @@ -86,12 +82,10 @@ extern PyTypeObject Ipo_Type; #define BPy_Ipo_Check(v) ((v)->ob_type == &Ipo_Type) /* for type checking */ /* Python BPy_Ipo structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - Ipo * ipo; -} -BPy_Ipo; +typedef struct { + PyObject_HEAD /* required py macro */ + Ipo * ipo; +} BPy_Ipo; /*****************************************************************************/ /* Metaball Data */ @@ -101,12 +95,10 @@ 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 */ - MetaBall * metaball; -} -BPy_Metaball; +typedef struct { + PyObject_HEAD /* required py macro */ + MetaBall * metaball; +} BPy_Metaball; /*****************************************************************************/ /* Metaelem Data */ @@ -116,12 +108,10 @@ extern PyTypeObject Metaelem_Type; #define BPy_Metaelem_Check(v) ((v)->ob_type==&Metaelem_Type) /* Python BPy_Metaelem structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - MetaElem * metaelem; -} -BPy_Metaelem; +typedef struct { + PyObject_HEAD /* required py macro */ + MetaElem * metaelem; +} BPy_Metaelem; /*****************************************************************************/ /* Effect Data */ @@ -131,12 +121,10 @@ extern PyTypeObject Effect_Type; #define BPy_Effect_Check(v) ((v)->ob_type==&Effect_Type) /* Python BPy_Effect structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - Effect * effect; -} -BPy_Effect; +typedef struct { + PyObject_HEAD /* required py macro */ + Effect * effect; +} BPy_Effect; /*****************************************************************************/ /* Wave Data */ @@ -146,12 +134,10 @@ extern PyTypeObject Wave_Type; #define BPy_Wave_Check(v) ((v)->ob_type==&Wave_Type) /* Python BPy_Wave structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - Effect * wave; -} -BPy_Wave; +typedef struct { + PyObject_HEAD /* required py macro */ + Effect * wave; +} BPy_Wave; /*****************************************************************************/ /* Build Data */ @@ -161,12 +147,10 @@ extern PyTypeObject Build_Type; #define BPy_Build_Check(v) ((v)->ob_type==&Build_Type) /* Python BPy_Build structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - Effect * build; -} -BPy_Build; +typedef struct { + PyObject_HEAD /* required py macro */ + Effect * build; +} BPy_Build; /*****************************************************************************/ /* Particle Data */ @@ -176,12 +160,10 @@ extern PyTypeObject Particle_Type; #define BPy_Particle_Check(v) ((v)->ob_type==&Particle_Type) /* Python BPy_Particle structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - Effect * particle; -} -BPy_Particle; +typedef struct { + PyObject_HEAD /* required py macro */ + Effect * particle; +} BPy_Particle; /*****************************************************************************/ /* Curve Data */ @@ -191,14 +173,12 @@ extern PyTypeObject Curve_Type; #define BPy_Curve_Check(v) ((v)->ob_type==&Curve_Type) /* Python BPy_Curve structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ +typedef struct { + PyObject_HEAD /* required py macro */ Curve * curve; /* pointer for iterator: does not point to owned memory */ Nurb *iter_pointer; -} -BPy_Curve; +} BPy_Curve; /********** CurNurb data @@ -214,10 +194,10 @@ typedef struct { Nurb * nurb; /* pointer to Blender data */ /* iterator stuff */ - /* internal ptrs to point data. do not free */ + /* internal ptrs to point data. do not free */ BPoint *bp; BezTriple *bezt; - int atEnd; /* iter exhausted flag */ + int atEnd; /* iter exhausted flag */ int nextPoint; } BPy_CurNurb; @@ -231,11 +211,9 @@ extern PyTypeObject World_Type; #define BPy_World_Check(v) ((v)->ob_type==&World_Type) /* Python BPy_World structure definition */ -typedef struct -{ - PyObject_HEAD /* required py macro */ - World * world; -} -BPy_World; - -#endif /* EXPP_bpy_types_h */ +typedef struct { + PyObject_HEAD /* required py macro */ + World * world; +} BPy_World; + +#endif /* EXPP_bpy_types_h */ |