fix for python button evaluation not restoring the __main__ module.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 4 Dec 2012 19:58:13 +0000 (19:58 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 4 Dec 2012 19:58:13 +0000 (19:58 +0000)
source/blender/python/intern/bpy_interface.c

index c98322c7f52d398b279f8ac10c158bb4f947ee0e..cdecf64c93c2ed7a4c917627f5c29290fd1309af 100644 (file)
@@ -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);