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>2020-10-09 03:17:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-09 04:11:00 +0300
commitc69df6728a287e21ef60072f549cac7f1d43950f (patch)
tree94192c9cd065fb9d0ee3cdf0f549a589f7ed82a4 /source/blender/python/bmesh/bmesh_py_api.c
parent2d5e38d4ece9074ac3ad550a130658e8a29fdac6 (diff)
Cleanup: use real-module for 'bmesh.ops'
Replace module-like object with Python module, this simplifies checks for generating API docs and is more correct.
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, 1 insertions, 2 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c
index c6fd4bf0644..6dcf8bc5f1c 100644
--- a/source/blender/python/bmesh/bmesh_py_api.c
+++ b/source/blender/python/bmesh/bmesh_py_api.c
@@ -201,8 +201,7 @@ PyObject *BPyInit_bmesh(void)
/* bmesh.ops (not a real module, exposes module like access). */
PyModule_AddObject(mod, "ops", (submodule = BPyInit_bmesh_ops()));
- /* PyDict_SetItemString(sys_modules, PyModule_GetNameObject(submodule), submodule); */
- PyDict_SetItemString(sys_modules, "bmesh.ops", submodule); /* fake module */
+ PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule);
PyModule_AddObject(mod, "utils", (submodule = BPyInit_bmesh_utils()));
PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule);