diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-10-27 23:37:37 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-10-27 23:37:37 +0400 |
commit | a9a545d7848c06dbc5792e6cebcb53364c6a35a9 (patch) | |
tree | 97701c4e9b386f0f42182f58a4d625187658e02c /source/blender/python/api2_2x/Mesh.h | |
parent | 637895d29d4077b4e1980ad0d5bd537e28c1ca91 (diff) |
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
Diffstat (limited to 'source/blender/python/api2_2x/Mesh.h')
-rw-r--r-- | source/blender/python/api2_2x/Mesh.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 */ |