From a9a545d7848c06dbc5792e6cebcb53364c6a35a9 Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Thu, 27 Oct 2005 19:37:37 +0000 Subject: Lots of BPy Mesh additions: - added faces.uvSel attribute: can get/set selection status of UV vertices in UV Editor window - make mesh.faceUV, mesh.vertexUV and mesh.vertexColor writable: users can now enable/disable UV faces, vertex colors, "sticky" vertices - fixed bug with mesh tool methods: before it would only work if an object linked to the mesh was selected - added mesh.quadToTriangle() and mesh.triangleToQuad() methods - added selected() method to verts, edges, faces; returns list of indices of selected items - mesh.getFromObject() now gets derived mesh data - ported vertex group methods from NMesh (required change to Object.c) - ported module dictionaries from NMesh --- source/blender/python/api2_2x/Mesh.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender/python/api2_2x/Mesh.h') diff --git a/source/blender/python/api2_2x/Mesh.h b/source/blender/python/api2_2x/Mesh.h index 31810a57d44..ada47b0927c 100644 --- a/source/blender/python/api2_2x/Mesh.h +++ b/source/blender/python/api2_2x/Mesh.h @@ -113,14 +113,15 @@ typedef struct { typedef struct { PyObject_HEAD /* required python macro */ - Mesh * mesh; + Mesh *mesh; + Object *object; } BPy_Mesh; /* PROTOS */ PyObject *Mesh_Init( void ); -PyObject *Mesh_CreatePyObject( Mesh * me ); +PyObject *Mesh_CreatePyObject( Mesh * me, Object *obj ); int Mesh_CheckPyObject( PyObject * pyobj ); -Mesh *Mesh_FromPyObject( PyObject * pyobj ); +Mesh *Mesh_FromPyObject( PyObject * pyobj, Object *obj ); #endif /* EXPP_MESH_H */ -- cgit v1.2.3