[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39280] branches/soc-2011-onion/source/ blender/editors/sculpt_paint/paint_uv.c: smooth brush

Antony Riakiotakis kalast at gmail.com
Thu Aug 11 01:23:37 CEST 2011


Revision: 39280
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39280
Author:   psy-fi
Date:     2011-08-10 23:23:36 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
smooth brush
============
-Use brush strength for the strokes (Set by using Shift-F)

Modified Paths:
--------------
    branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_uv.c

Modified: branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_uv.c
===================================================================
--- branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_uv.c	2011-08-10 22:43:02 UTC (rev 39279)
+++ branches/soc-2011-onion/source/blender/editors/sculpt_paint/paint_uv.c	2011-08-10 23:23:36 UTC (rev 39280)
@@ -373,7 +373,7 @@
 			diff[1] /= aspectRatio;
 			if((dist = dot_v2v2(diff, diff)) <= radius){
 				float strength;
-				strength = brush_curve_strength(brush, dist, radius);
+				strength = brush_alpha(brush)*brush_curve_strength(brush, dist, radius);
 				normalize_v2(diff);
 				if(invert){
 					mt->uv[i][0] += strength*diff[0]*0.001;




More information about the Bf-blender-cvs mailing list