[Bf-blender-cvs] [d4c3b1e] mathutils_bvhtree: Properly register `mathutils.bvhtree` as a submodule.

Lukas Tönne noreply at git.blender.org
Sat Jan 3 11:09:29 CET 2015


Commit: d4c3b1e3a31d8a1698a0223ce5934997f9b80a02
Author: Lukas Tönne
Date:   Wed Dec 31 10:00:57 2014 +0100
Branches: mathutils_bvhtree
https://developer.blender.org/rBd4c3b1e3a31d8a1698a0223ce5934997f9b80a02

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 ce1492c..d89d3f1 100644
--- a/source/blender/python/mathutils/mathutils.c
+++ b/source/blender/python/mathutils/mathutils.c
@@ -549,8 +549,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