[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25406] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: Bugfix: weight paint combined with pose mode was not working correct

Brecht Van Lommel brecht at blender.org
Tue Dec 15 19:15:40 CET 2009


Revision: 25406
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25406
Author:   blendix
Date:     2009-12-15 19:15:38 +0100 (Tue, 15 Dec 2009)

Log Message:
-----------
Bugfix: weight paint combined with pose mode was not working correct
in some cases, setting active vertex group to invalid value.

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	2009-12-15 18:09:01 UTC (rev 25405)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2009-12-15 18:15:38 UTC (rev 25406)
@@ -1122,7 +1122,7 @@
 		/* 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);





More information about the Bf-blender-cvs mailing list