diff options
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index e799916fbf8..14e9626212a 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -984,12 +984,12 @@ static EnumPropertyItem *weight_paint_sample_enum_itemf(bContext *C, PointerRNA else { EnumPropertyItem *item= NULL, item_tmp= {0}; int totitem= 0; - int i= 0, a= 0; + int i= 0; bDeformGroup *dg; - for(dg= vc.obact->defbase.first; dg && a<totgroup; a++, dg= dg->next) { - if(groups[a]) { + for(dg= vc.obact->defbase.first; dg && i<totgroup; i++, dg= dg->next) { + if(groups[i]) { item_tmp.identifier= item_tmp.name= dg->name; - item_tmp.value= i++; + item_tmp.value= i; RNA_enum_item_add(&item, &totitem, &item_tmp); } } |