From 302479603b6ae471e0079617cfe3a2e98e74c249 Mon Sep 17 00:00:00 2001 From: Willian Padovani Germano Date: Sat, 31 May 2003 04:43:10 +0000 Subject: * Updated NMesh port to exppython: Added material and image handling/hooks and the constant dictionaries. Changed Image.h and Material.h to only have public declarations, so NMesh could include them. --- source/blender/python/api2_2x/NMesh.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'source/blender/python/api2_2x/NMesh.h') 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 */ -- cgit v1.2.3