diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-16 09:03:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-16 09:03:13 +0400 |
commit | ebec1116184275f594cf08417b04fa43fa554628 (patch) | |
tree | 6e971d90151d1db9bd2a026f10294375c967c4c1 /source/blender/python/bmesh/bmesh_py_types_select.c | |
parent | c6c0601d8ea410494b59081152f3cc080a8f39a3 (diff) |
bmesh py api:
Wrap customdata, so far you can access the data layers in a pythonic way but not manipulate the customdata yet.
provides dictionary like access to customdata layers, eg:
texpoly = bm.faces.tex["UVMap"]
print(bm.verts.shape.keys()) # un-intended pun, keys() works on all layers.
print("MyInt" in bm.edges.int) # __contains__
layer = bm.faces.get("CheckForLayer")
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_types_select.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types_select.c b/source/blender/python/bmesh/bmesh_py_types_select.c index fb9ec6437ae..4bd8ce70fbc 100644 --- a/source/blender/python/bmesh/bmesh_py_types_select.c +++ b/source/blender/python/bmesh/bmesh_py_types_select.c @@ -379,7 +379,7 @@ PyObject *BPy_BMEditSelIter_CreatePyObject(BMesh *bm) return (PyObject *)self; } -void BPy_BM_init_select_types(void) +void BPy_BM_init_types_select(void) { BPy_BMEditSelSeq_Type.tp_basicsize = sizeof(BPy_BMEditSelSeq); BPy_BMEditSelIter_Type.tp_basicsize = sizeof(BPy_BMEditSelIter); |