Bugfix #19673: Blender crashes when I open "operator cheat sheet"

Missing check before using 'obedit' pointer for shape_itemf() (i.e. shapekey enum generator)
This commit is contained in:
2009-10-18 02:06:06 +00:00
parent 2d7587bf0c
commit eff008385b

View File

@@ -5116,7 +5116,7 @@ static int blend_from_shape_exec(bContext *C, wmOperator *op)
static EnumPropertyItem *shape_itemf(bContext *C, PointerRNA *ptr, int *free)
{
Object *obedit= CTX_data_edit_object(C);
Mesh *me= obedit->data;
Mesh *me= (obedit) ? obedit->data : NULL;
Key *key;
KeyBlock *kb, *actkb;
EnumPropertyItem tmp= {0, "", 0, "", ""}, *item= NULL;