[Bf-blender-cvs] [1727a16] master: Properly register the `mathutils.interpolate` submodule.
Lukas Tönne
noreply at git.blender.org
Tue Jan 20 09:53:18 CET 2015
Commit: 1727a165dd165d2ce392e7a31691db19fb093a5f
Author: Lukas Tönne
Date: Wed Dec 31 09:58:47 2014 +0100
Branches: master
https://developer.blender.org/rB1727a165dd165d2ce392e7a31691db19fb093a5f
Properly register the `mathutils.interpolate` 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 f39c900..ecaaae8 100644
--- a/source/blender/python/mathutils/mathutils.c
+++ b/source/blender/python/mathutils/mathutils.c
@@ -538,6 +538,12 @@ PyMODINIT_FUNC PyInit_mathutils(void)
/* submodule */
PyModule_AddObject(mod, "geometry", (submodule = PyInit_mathutils_geometry()));
+ /* XXX, python doesnt do imports with this usefully yet
+ * 'from mathutils.geometry import PolyFill'
+ * ...fails without this. */
+ PyDict_SetItemString(sys_modules, PyModule_GetName(submodule), submodule);
+ Py_INCREF(submodule);
+
PyModule_AddObject(mod, "interpolate", (submodule = PyInit_mathutils_interpolate()));
/* XXX, python doesnt do imports with this usefully yet
* 'from mathutils.geometry import PolyFill'
More information about the Bf-blender-cvs
mailing list