From dec09f2a3bac3bc7173bb79701fafc2c7fe87930 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 26 May 2011 05:40:00 +0000 Subject: fix for mistake in selecting vertex groups (own recent commit) --- source/blender/editors/sculpt_paint/paint_vertex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors') 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 && anext) { - if(groups[a]) { + for(dg= vc.obact->defbase.first; dg && inext) { + 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); } } -- cgit v1.2.3