Revision: 36905
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36905
Author: campbellbarton
Date: 2011-05-26 05:40:00 +0000 (Thu, 26 May 2011)
Log Message:
-----------
fix for mistake in selecting vertex groups (own recent commit)
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
2011-05-26 05:39:40 UTC (rev 36904)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
2011-05-26 05:40:00 UTC (rev 36905)
@@ -984,12 +984,12 @@
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);
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs