diff options
Diffstat (limited to 'source/blender/python/api2_2x/NMesh.h')
-rw-r--r-- | source/blender/python/api2_2x/NMesh.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/NMesh.h b/source/blender/python/api2_2x/NMesh.h index 3bbc1406cc9..fa10beffb3a 100644 --- a/source/blender/python/api2_2x/NMesh.h +++ b/source/blender/python/api2_2x/NMesh.h @@ -59,9 +59,12 @@ #include "DNA_armature_types.h" #include "mydevice.h" -#include "gen_utils.h" +#include "Material.h" +#include "Image.h" #include "vector.h" #include "constant.h" +#include "gen_utils.h" + /* EXPP PyType Objects */ @@ -70,6 +73,8 @@ PyTypeObject NMFace_Type; PyTypeObject NMVert_Type; PyTypeObject NMCol_Type; +PyTypeObject Image_Type; + /* Globals */ static PyObject *g_nmeshmodule = NULL; @@ -81,6 +86,9 @@ static PyObject *g_nmeshmodule = NULL; #define C_NMVert_Check(v) ((v)->ob_type == &NMVert_Type) #define C_NMCol_Check(v) ((v)->ob_type == &NMCol_Type) +static char M_NMesh_doc[] = +"The Blender.NMesh module"; + static char M_NMesh_Col_doc[]= "([r, g, b, a]) - Get a new mesh color\n\n\ [r=255, g=255, b=255, a=255] Specify the color components"; @@ -179,7 +187,7 @@ typedef struct { short mode; short flag; unsigned char transp; - PyObject *image; /* Image; was DataBlock *tpage -- PyObj is wrong, change it*/ + C_Image *image; char mat_nr, smooth; } C_NMFace; /* an NMesh face */ |