diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-06 14:13:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-06 14:15:56 +0400 |
commit | 75212f4677f4e3f54168eaacdfcaad19289eca38 (patch) | |
tree | 68bdfcbb031b1b2595917f4394a8ed58c0a1127a /source/blender/python/bmesh/bmesh_py_api.c | |
parent | 72d950ba497058eb4e75e3898d626938b6a7940a (diff) |
BMesh Py API: add bmesh.geometry.intersect_face_point()
patch originally by mont29 with some edits.
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_api.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c index c7b10d0aa4b..bc14e1ac3a6 100644 --- a/source/blender/python/bmesh/bmesh_py_api.c +++ b/source/blender/python/bmesh/bmesh_py_api.c @@ -42,6 +42,7 @@ #include "bmesh_py_ops.h" #include "bmesh_py_utils.h" +#include "bmesh_py_geometry.h" #include "BKE_editmesh.h" @@ -201,5 +202,9 @@ PyObject *BPyInit_bmesh(void) PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule); Py_INCREF(submodule); + PyModule_AddObject(mod, "geometry", (submodule = BPyInit_bmesh_geometry())); + PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule); + Py_INCREF(submodule); + return mod; } |