fix for python button evaluation not restoring the __main__ module.

This commit is contained in:
2012-12-04 19:58:13 +00:00
parent 302856f4b1
commit d0667c70dd

View 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);