diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-03-19 06:24:00 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-03-19 06:24:00 +0300 |
commit | cbbe236f9237cd7a942e250493b6c7402300deb7 (patch) | |
tree | ccdfdfe9d008dc0f5be4a5d1d649a60eaba40cb9 /source/blender/python/api2_2x/Text3d.h | |
parent | f61c5b1eecea8140366f6258eebb244bdbd3b87c (diff) |
- patch submitted by guitargeek
-includes:
*Text3d accessors - ablity to manipulate FONT objects through python
*update to Object.link - calls text_to_curve upon ob_font link for drawing
*update to constant.h - constant type checking define
*update to curve.c - clamp values on getters/setters
*clean up of Text3d module
Diffstat (limited to 'source/blender/python/api2_2x/Text3d.h')
-rw-r--r-- | source/blender/python/api2_2x/Text3d.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/blender/python/api2_2x/Text3d.h b/source/blender/python/api2_2x/Text3d.h index 119d6720bf6..50566e98e9b 100644 --- a/source/blender/python/api2_2x/Text3d.h +++ b/source/blender/python/api2_2x/Text3d.h @@ -35,7 +35,6 @@ #include <Python.h> #include <stdio.h> - #include <BLI_arithb.h> #include <BLI_blenlib.h> #include <BKE_main.h> @@ -43,27 +42,22 @@ #include <BKE_object.h> #include <BKE_library.h> #include <BKE_curve.h> - #include <DNA_curve_types.h> - #include"gen_utils.h" -extern PyTypeObject Text3d_Type; +#define BPy_Text3d_Check(v) ((v)->ob_type==&Text3d_Type) +typedef Curve Text3d; +//prototypes int Text3d_CheckPyObject( PyObject * py_obj ); PyObject *Text3d_Init( void ); struct Text3d *Text3d_FromPyObject( PyObject * py_obj ); - -#define BPy_Text3d_Check(v) ((v)->ob_type==&Text3d_Type) -typedef Curve Text3d; - /* Python BPy_Text3d structure definition */ typedef struct { PyObject_HEAD /* required py macro */ Text3d * curve; } BPy_Text3d; - #endif /* EXPP_TEXT3D_H */ |