Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-07 04:36:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-07 04:36:57 +0400
commit6f7ae034fd40a29e23fd02b1e8d034222f45643c (patch)
treed707dc460d67ca7f25ea3eb268f3382bc646a751 /source/blender/python/intern/bpy_driver.c
parentb8cc575ee312ced934498663f85b7b6b7428cc14 (diff)
fix for noise module in driver namespace (was infact mathutils).
Diffstat (limited to 'source/blender/python/intern/bpy_driver.c')
-rw-r--r--source/blender/python/intern/bpy_driver.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_driver.c b/source/blender/python/intern/bpy_driver.c
index 34270c832ea..db408374b7f 100644
--- a/source/blender/python/intern/bpy_driver.c
+++ b/source/blender/python/intern/bpy_driver.c
@@ -82,9 +82,10 @@ int bpy_pydriver_create_dict(void)
}
/* add noise to global namespace */
- mod= PyImport_ImportModuleLevel((char *)"mathutils.noise", NULL, NULL, NULL, 0);
+ mod= PyImport_ImportModuleLevel((char *)"mathutils", NULL, NULL, NULL, 0);
if (mod) {
- PyDict_SetItemString(bpy_pydriver_Dict, "noise", mod);
+ PyObject *modsub= PyDict_GetItemString(PyModule_GetDict(mod), "noise");
+ PyDict_SetItemString(bpy_pydriver_Dict, "noise", modsub);
Py_DECREF(mod);
}