fix [#30186] Crash in execute the "Operator Cheat Sheet"

This commit is contained in:
Campbell Barton
2012-02-15 12:39:18 +00:00
parent 119993f88b
commit 1eb48de199

View File

@@ -2664,7 +2664,7 @@ static EnumPropertyItem *shape_itemf(bContext *C, PointerRNA *UNUSED(ptr), Prop
{
Object *obedit = CTX_data_edit_object(C);
Mesh *me = (obedit) ? obedit->data : NULL;
BMEditMesh *em = me->edit_btmesh;
BMEditMesh *em = (me) ? me->edit_btmesh : NULL;
EnumPropertyItem *item = NULL;
int totitem = 0;