Fix [#30700] Blend from Shape gives only selection for basis shapekey

RNA_enum_item_add already sets totitem, so it was increased twice…
This commit is contained in:
Bastien Montagne
2012-03-27 20:45:06 +00:00
parent e8a226b38c
commit e38bdaa04c

View File

@@ -2521,9 +2521,8 @@ static EnumPropertyItem *shape_itemf(bContext *C, PointerRNA *UNUSED(ptr), Prop
tmp.value = totitem;
tmp.identifier = em->bm->vdata.layers[a].name;
tmp.name = em->bm->vdata.layers[a].name;
/* RNA_enum_item_add sets totitem itself! */
RNA_enum_item_add(&item, &totitem, &tmp);
totitem++;
}
}