diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-12-31 11:58:47 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:09 +0300 |
commit | 1727a165dd165d2ce392e7a31691db19fb093a5f (patch) | |
tree | 2916219dbcc5c94c49f8a46ea3064b3595782dc3 /source/blender/python/mathutils/mathutils.c | |
parent | 1b6f5ecbf4aad9c6d4c58460b3e5596cd5f12399 (diff) |
Properly register the `mathutils.interpolate` submodule.
Diffstat (limited to 'source/blender/python/mathutils/mathutils.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c index f39c900842b..ecaaae80aa2 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' |