[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29974] branches/soc-2010-jwilkins/source/ blender/editors/sculpt_paint/sculpt.c: * clamp bstrength in smooth to 1 so that it doesn' t do more than 4 iterations

Jason Wilkins Jason.A.Wilkins at gmail.com
Mon Jul 5 10:06:37 CEST 2010


Revision: 29974
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29974
Author:   jwilkins
Date:     2010-07-05 10:06:37 +0200 (Mon, 05 Jul 2010)

Log Message:
-----------
* clamp bstrength in smooth to 1 so that it doesn't do more than 4 iterations

Modified Paths:
--------------
    branches/soc-2010-jwilkins/source/blender/editors/sculpt_paint/sculpt.c

Modified: branches/soc-2010-jwilkins/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- branches/soc-2010-jwilkins/source/blender/editors/sculpt_paint/sculpt.c	2010-07-05 07:18:42 UTC (rev 29973)
+++ branches/soc-2010-jwilkins/source/blender/editors/sculpt_paint/sculpt.c	2010-07-05 08:06:37 UTC (rev 29974)
@@ -1221,6 +1221,8 @@
 	int iteration, n, count;
 	float last;
 
+	CLAMP(bstrength, 0, 1);
+
 	count = (int)(bstrength*max_iterations);
 	last  = max_iterations*(bstrength - count*fract);
 





More information about the Bf-blender-cvs mailing list