diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-04 23:58:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-04 23:58:13 +0400 |
commit | d0667c70ddff3eba37921bda85b8303cf199ae72 (patch) | |
tree | cfc967cd987cd6511e24ae35ab0271cfd3fcea4b /source/blender | |
parent | 302856f4b16896d19e2adf6bd42823a88684fd4a (diff) |
fix for python button evaluation not restoring the __main__ module.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index c98322c7f52..cdecf64c93c 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -618,7 +618,7 @@ int BPY_button_exec(bContext *C, const char *expr, double *value, const short ve } } - PyC_MainModule_Backup(&main_mod); + PyC_MainModule_Restore(main_mod); bpy_context_clear(C, &gilstate); |