2.5: fix for crash in EM_EndEditMesh when using 3d view header.

This commit is contained in:
Brecht Van Lommel
2009-03-30 13:53:48 +00:00
parent 78a3db7d64
commit 8766bda89e

View File

@@ -5118,7 +5118,8 @@ static void do_view3d_header_buttons(bContext *C, void *arg, int event)
break;
}
EM_EndEditMesh(obedit->data, em);
if(obedit && obedit->type==OB_MESH)
EM_EndEditMesh(obedit->data, em);
}
static void view3d_header_pulldowns(const bContext *C, uiBlock *block, Object *ob, int *xcoord, int yco)