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>2010-08-14 09:33:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-14 09:33:20 +0400
commit04f619d8af6ddc7de541488f77713818e18a886e (patch)
tree9c78fc1f7cb6a7bc4544bd7e1f4f2bbf39ee8752 /source/blender/python/generic/noise.c
parentae6a63253499eb83f5e6c260e598e7f8fd0cae13 (diff)
- PyLineSpit() - used to print the filename and line number for internal errors now works when executing class functions in a module.
- replaced PySys_GetObject("modules") with PyImport_GetModuleDict() - use defaults for keymap import/export rather then setting the same value every time from the UI scripts.
Diffstat (limited to 'source/blender/python/generic/noise.c')
-rw-r--r--source/blender/python/generic/noise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/noise.c b/source/blender/python/generic/noise.c
index b07950099a3..4a09cbb58d8 100644
--- a/source/blender/python/generic/noise.c
+++ b/source/blender/python/generic/noise.c
@@ -658,7 +658,7 @@ static struct PyModuleDef noise_module_def = {
PyObject *Noise_Init(void)
{
PyObject *submodule = PyModule_Create(&noise_module_def);
- PyDict_SetItemString(PySys_GetObject("modules"), noise_module_def.m_name, submodule);
+ PyDict_SetItemString(PyImport_GetModuleDict(), noise_module_def.m_name, submodule);
/* use current time as seed for random number generator by default */
setRndSeed(0);