Commit: 532a03c2324d538cc51d9a637d04b2958fe17738
Author: Lukas Tönne
Date: Wed Dec 31 09:58:47 2014 +0100
Branches: gooseberry
https://developer.blender.org/rB532a03c2324d538cc51d9a637d04b2958fe17738
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 0f4c873..009aab9 100644
--- a/source/blender/python/mathutils/mathutils.c
+++ b/source/blender/python/mathutils/mathutils.c
@@ -534,6 +534,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'
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs