[Bf-blender-cvs] [169238f] mathutils_bvhtree: Properly register `mathutils.bvhtree` as a submodule.
Lukas Tönne
noreply at git.blender.org
Wed Dec 31 10:01:36 CET 2014
Commit: 169238ff648931ed52775b6c8edc921b9086c700
Author: Lukas Tönne
Date: Wed Dec 31 10:00:57 2014 +0100
Branches: mathutils_bvhtree
https://developer.blender.org/rB169238ff648931ed52775b6c8edc921b9086c700
Properly register `mathutils.bvhtree` as a submodule.
===================================================================
M source/blender/python/mathutils/mathutils.c
===================================================================
diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c
index d2970f4..5c8818b 100644
--- a/source/blender/python/mathutils/mathutils.c
+++ b/source/blender/python/mathutils/mathutils.c
@@ -554,8 +554,12 @@ PyMODINIT_FUNC PyInit_mathutils(void)
PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule);
Py_INCREF(submodule);
- /* KDTree submodule */
+ /* BVHTree submodule */
PyModule_AddObject(mod, "bvhtree", (submodule = PyInit_mathutils_bvhtree()));
+ PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule);
+ Py_INCREF(submodule);
+
+ /* KDTree submodule */
PyModule_AddObject(mod, "kdtree", (submodule = PyInit_mathutils_kdtree()));
PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule);
Py_INCREF(submodule);
More information about the Bf-blender-cvs
mailing list