diff options
author | Ken Hughes <khughes@pacific.edu> | 2007-03-20 21:45:05 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2007-03-20 21:45:05 +0300 |
commit | a6db9c59494c1ecf00ba165fff3d9007f0b0fe32 (patch) | |
tree | a997749b92a0f827d2078e3401a18577ef0dc19b /source/blender/python/BPY_interface.c | |
parent | cbadf6523c85c1595f9446e49e18f4f3bbd8d85e (diff) |
Python API
----------
Definition of default "bpy" module was decrementing reference count, which
caused assertion errors on Windows. This fixes the problem on Linux; Win
developers please test!
Diffstat (limited to 'source/blender/python/BPY_interface.c')
-rw-r--r-- | source/blender/python/BPY_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c index fa3f7747d46..c8173866f97 100644 --- a/source/blender/python/BPY_interface.c +++ b/source/blender/python/BPY_interface.c @@ -1973,8 +1973,8 @@ void init_ourImport( void ) d = PyModule_GetDict( m ); /* add in "bpy" as a default module */ - EXPP_dict_set_item_str( d, "bpy", Main_Init() ); - + PyDict_SetItemString(d, "bpy", Main_Init() ); + EXPP_dict_set_item_str( d, "__import__", import ); } |