* 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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user