Bugfix: weight paint combined with pose mode was not working correct
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 15 Dec 2009 18:15:38 +0000 (18:15 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 15 Dec 2009 18:15:38 +0000 (18:15 +0000)
in some cases, setting active vertex group to invalid value.

source/blender/editors/sculpt_paint/paint_vertex.c

index 56e020e22aad0e4395edfddf138fcbfdfa882fcc..ba9c36317288ee609e17432872dc9752b04dcbc9 100644 (file)
@@ -1122,7 +1122,7 @@ static int set_wpaint(bContext *C, wmOperator *op)                /* toggle */
                /* verify if active weight group is also active bone */
                par= modifiers_isDeformedByArmature(ob);
                if(par && (par->mode & OB_MODE_POSE)) {
-                       bArmature *arm= ob->data;
+                       bArmature *arm= par->data;
 
                        if(arm->act_bone)
                                ED_vgroup_select_by_name(ob, arm->act_bone->name);