- fix for crash if drivers were used in the .B.blend

- fix for problem where proxy objects could enter editmode but not exit
This commit is contained in:
2010-01-10 20:01:13 +00:00
parent 0bd98195a1
commit b36a05bb7e
5 changed files with 24 additions and 17 deletions

View File

@@ -698,8 +698,13 @@ int BPY_button_eval(bContext *C, char *expr, double *value)
void BPY_load_user_modules(bContext *C)
{
PyGILState_STATE gilstate;
Main *bmain= CTX_data_main(C);
Text *text;
/* can happen on file load */
if(bmain==NULL)
return;
bpy_context_set(C, &gilstate);
for(text=CTX_data_main(C)->text.first; text; text= text->id.next) {