diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-10-11 08:09:08 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-10-11 08:09:08 +0400 |
commit | 5380db502e6513e6d813bea62867da393a909a10 (patch) | |
tree | c2ec6475ebdff095787792dc68b2a835e9daaf27 /source/blender/python/api2_2x/Mesh.h | |
parent | b970eadedfd9b70ba08a0c99e5f3fac3c31ec1e7 (diff) |
- added Mesh.MVert(); can now create 'thick' vertices which don't wrap mesh
- implemented slice operations (get/set) for vertex list; allows script
writers to manipulate lists of vertices (using 'thick' vertices)
- fixed problem in mesh.faces.extend() which allowed the creation of
"Eeekadoodle" faces
- added mesh.update() method; (possibly) temporary fix to allow updating DAG
Diffstat (limited to 'source/blender/python/api2_2x/Mesh.h')
-rw-r--r-- | source/blender/python/api2_2x/Mesh.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Mesh.h b/source/blender/python/api2_2x/Mesh.h index 4cd68e72f12..714819036dd 100644 --- a/source/blender/python/api2_2x/Mesh.h +++ b/source/blender/python/api2_2x/Mesh.h @@ -50,6 +50,7 @@ /* EXPP PyType Objects */ extern PyTypeObject Mesh_Type; extern PyTypeObject MVert_Type; +extern PyTypeObject PVert_Type; extern PyTypeObject MVertSeq_Type; extern PyTypeObject MFace_Type; extern PyTypeObject MCol_Type; @@ -61,6 +62,7 @@ struct BPy_Object; #define BPy_Mesh_Check(v) ((v)->ob_type == &Mesh_Type) #define BPy_MFace_Check(v) ((v)->ob_type == &MFace_Type) #define BPy_MVert_Check(v) ((v)->ob_type == &MVert_Type) +#define BPy_PVert_Check(v) ((v)->ob_type == &PVert_Type) #define BPy_MCol_Check(v) ((v)->ob_type == &MCol_Type) #define BPy_MEdge_Check(v) ((v)->ob_type == &MEdge_Type) @@ -73,7 +75,7 @@ typedef struct { typedef struct { PyObject_VAR_HEAD /* required python macro */ - Mesh * mesh; + void * data; /* points to a Mesh or an MVert */ int index; } BPy_MVert; /* a Mesh vertex */ |