diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-05-26 09:40:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-05-26 09:40:00 +0400 |
commit | dec09f2a3bac3bc7173bb79701fafc2c7fe87930 (patch) | |
tree | 2825e92b8569ebd6651b07ce9d0ea78a3210c506 /source/blender/editors/sculpt_paint | |
parent | 9a556fd69b75b63fa26848ada2bf8322a0374222 (diff) |
fix for mistake in selecting vertex groups (own recent commit)
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-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); } } |