Bugfix: weight paint combined with pose mode was not working correct

in some cases, setting active vertex group to invalid value.
This commit is contained in:
Brecht Van Lommel 2009-12-15 18:15:38 +00:00
parent e677e7e99a
commit 8a6e9fc7ee

@ -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);