Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2005-10-11 08:09:08 +0400
committerKen Hughes <khughes@pacific.edu>2005-10-11 08:09:08 +0400
commit5380db502e6513e6d813bea62867da393a909a10 (patch)
treec2ec6475ebdff095787792dc68b2a835e9daaf27 /source/blender/python/api2_2x/Mesh.h
parentb970eadedfd9b70ba08a0c99e5f3fac3c31ec1e7 (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.h4
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 */