From d0667c70ddff3eba37921bda85b8303cf199ae72 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 4 Dec 2012 19:58:13 +0000 Subject: fix for python button evaluation not restoring the __main__ module. --- source/blender/python/intern/bpy_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python') 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); -- cgit v1.2.3