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-06-30 15:14:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-30 15:14:10 +0400
commit3e99ec8d3d9e6eccf1b891a0e66432026fc622c5 (patch)
tree9f0ac9a9edaf0975cd3aed86873c9f5486e654a6 /source/blender/python/bmesh/bmesh_py_api.c
parent5a859c6ba3d646252f5cef6b44b39bf5c13656ea (diff)
all bmesh operators can now be accessed from bmesh.ops.* using a generic wrapper,
argument parsing still needs to have support added for vector, matrix and element types.
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_api.c')
-rw-r--r--source/blender/python/bmesh/bmesh_py_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c
index 2cfe5847e55..b2fd1d3d61c 100644
--- a/source/blender/python/bmesh/bmesh_py_api.c
+++ b/source/blender/python/bmesh/bmesh_py_api.c
@@ -145,7 +145,8 @@ PyObject *BPyInit_bmesh(void)
Py_INCREF(submodule);
PyModule_AddObject(mod, "ops", (submodule = BPyInit_bmesh_ops()));
- PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule);
+ /* PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule); */
+ PyDict_SetItemString(sys_modules, "bmesh.ops", submodule); /* fake module */
Py_INCREF(submodule);
PyModule_AddObject(mod, "utils", (submodule = BPyInit_bmesh_utils()));