From 8a6e9fc7ee68a2bbeae0bcbc22e3afe067089bd8 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 15 Dec 2009 18:15:38 +0000 Subject: [PATCH] Bugfix: weight paint combined with pose mode was not working correct in some cases, setting active vertex group to invalid value. --- source/blender/editors/sculpt_paint/paint_vertex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 56e020e22aa..ba9c3631728 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -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);