- 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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user