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:
authorCampbell Barton <ideasman42@gmail.com>2012-03-16 09:03:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-16 09:03:13 +0400
commitebec1116184275f594cf08417b04fa43fa554628 (patch)
tree6e971d90151d1db9bd2a026f10294375c967c4c1 /source/blender/python/bmesh/bmesh_py_api.c
parentc6c0601d8ea410494b59081152f3cc080a8f39a3 (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_api.c')
-rw-r--r--source/blender/python/bmesh/bmesh_py_api.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c
index e3d0455073e..d9ca997bbd5 100644
--- a/source/blender/python/bmesh/bmesh_py_api.c
+++ b/source/blender/python/bmesh/bmesh_py_api.c
@@ -35,6 +35,8 @@
#include "bmesh_py_types.h"
#include "bmesh_py_types_select.h"
+#include "bmesh_py_types_customdata.h"
+
#include "bmesh_py_utils.h"
#include "BLI_utildefines.h"
@@ -129,7 +131,8 @@ PyObject *BPyInit_bmesh(void)
PyObject *sys_modules = PySys_GetObject("modules"); /* not pretty */
BPy_BM_init_types();
- BPy_BM_init_select_types();
+ BPy_BM_init_types_select();
+ BPy_BM_init_types_customdata();
mod = PyModule_Create(&BPy_BM_module_def);