[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53871] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: change to pressure & sculpt mode:

Campbell Barton ideasman42 at gmail.com
Thu Jan 17 05:00:56 CET 2013


Revision: 53871
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53871
Author:   campbellbarton
Date:     2013-01-17 04:00:51 +0000 (Thu, 17 Jan 2013)
Log Message:
-----------
change to pressure & sculpt mode:

Ignore size+pressure when the sculpt tool doesnt use dynamic size brushes (grab, thumb for eg).

The problem was if you didnt jab the stylus on the tablet hard enough you'd end up with a tiny brush since the initial pressure was used.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/sculpt.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2013-01-17 03:41:23 UTC (rev 53870)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2013-01-17 04:00:51 UTC (rev 53871)
@@ -3906,12 +3906,13 @@
 		}
 	}
 
-	if (BKE_brush_use_size_pressure(scene, brush)) {
+	if (BKE_brush_use_size_pressure(scene, brush) && paint_supports_dynamic_size(brush)) {
 		cache->pixel_radius *= cache->pressure;
 		cache->radius = cache->initial_radius * cache->pressure;
 	}
-	else
+	else {
 		cache->radius = cache->initial_radius;
+	}
 
 	cache->radius_squared = cache->radius * cache->radius;
 




More information about the Bf-blender-cvs mailing list