Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-12-15 21:15:38 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-12-15 21:15:38 +0300
commit8a6e9fc7ee68a2bbeae0bcbc22e3afe067089bd8 (patch)
treef27850bfc545144fc85ded8ccda8df0f93dc2d39 /source/blender/editors/sculpt_paint
parente677e7e99a3fae9d56cb9296d552707b74dc3c79 (diff)
Bugfix: weight paint combined with pose mode was not working correct
in some cases, setting active vertex group to invalid value.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex.c2
1 files changed, 1 insertions, 1 deletions
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);