Adding noise module by default in driver_namespace

http://www.pasteall.org/blend/8677
This commit is contained in:
2011-09-05 05:42:49 +00:00
parent 5c5b9cf4d7
commit 3b09c331fa

View File

@@ -76,6 +76,13 @@ int bpy_pydriver_create_dict(void)
Py_DECREF(mod);
}
/* add noise to global namespace */
mod= PyImport_ImportModuleLevel((char *)"noise", NULL, NULL, NULL, 0);
if (mod) {
PyDict_SetItemString(bpy_pydriver_Dict, "noise", mod);
Py_DECREF(mod);
}
return 0;
}