From 1eb48de1998df3066d648758f98103e1cd1b0738 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 15 Feb 2012 12:39:18 +0000 Subject: [PATCH] fix [#30186] Crash in execute the "Operator Cheat Sheet" --- source/blender/editors/mesh/bmesh_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/mesh/bmesh_tools.c b/source/blender/editors/mesh/bmesh_tools.c index e7db9b0ed37..80e0908a27b 100644 --- a/source/blender/editors/mesh/bmesh_tools.c +++ b/source/blender/editors/mesh/bmesh_tools.c @@ -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;