[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53477] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: Fix: weight painting operated only for selected vertices in edit mode.

Antony Riakiotakis kalast at gmail.com
Tue Jan 1 12:08:08 CET 2013


Revision: 53477
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53477
Author:   psy-fi
Date:     2013-01-01 11:08:05 +0000 (Tue, 01 Jan 2013)
Log Message:
-----------
Fix: weight painting operated only for selected vertices in edit mode.
We only need this in case vertex selection is enabled.

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	2012-12-31 21:32:46 UTC (rev 53476)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2013-01-01 11:08:05 UTC (rev 53477)
@@ -2342,7 +2342,7 @@
 		unsigned int       i;
 
 		for (i = 0; i < totvert; i++) {
-			me->dvert[i].flag = (me->mvert[i].flag & SELECT);
+			me->dvert[i].flag = use_vert_sel ? (me->mvert[i].flag & SELECT) : SELECT;
 		}
 
 		if (brush->vertexpaint_tool == PAINT_BLEND_BLUR) {




More information about the Bf-blender-cvs mailing list