Blender Git Commit Log

Git Commits -> Revision ebec111

Revision ebec111 by Campbell Barton (master)
March 16, 2012, 05:03 (GMT)
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")

Commit Details:

Full Hash: ebec1116184275f594cf08417b04fa43fa554628
SVN Revision: 44916
Parent Commit: c6c0601
Lines Changed: +598, -7

7 Modified Paths:

/source/blender/python/bmesh/bmesh_py_api.c (+4, -1) (Diff)
/source/blender/python/bmesh/bmesh_py_types.c (+45, -1) (Diff)
/source/blender/python/bmesh/bmesh_py_types_customdata.c (+509, -1) (Diff)
/source/blender/python/bmesh/bmesh_py_types_customdata.h (+37, -1) (Diff)
/source/blender/python/bmesh/bmesh_py_types_select.c (+1, -1) (Diff)
/source/blender/python/bmesh/bmesh_py_types_select.h (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021