[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34260] trunk/blender/source/blender/ editors/sculpt_paint/paint_stroke.c: Bugfix #25581
Ton Roosendaal
ton at blender.org
Tue Jan 11 15:01:23 CET 2011
Revision: 34260
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=34260
Author: ton
Date: 2011-01-11 14:01:23 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
Bugfix #25581
Pressure sensitivity for Sculpt 'strength' got lost in code cleanup.
Added warning in code, the function call is confusing.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c 2011-01-11 13:42:22 UTC (rev 34259)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c 2011-01-11 14:01:23 UTC (rev 34260)
@@ -766,9 +766,12 @@
if(length > FLT_EPSILON) {
int steps;
int i;
- float pressure;
+ float pressure= 1.0f;
- pressure = event_tablet_data(event, NULL);
+ /* XXX mysterious :) what has 'use size' do with this here... if you don't check for it, pressure fails */
+ if(brush_use_size_pressure(stroke->brush))
+ pressure = event_tablet_data(event, NULL);
+
if(pressure > FLT_EPSILON) {
scale = (brush_size(stroke->brush)*pressure*stroke->brush->spacing/50.0f) / length;
if(scale > FLT_EPSILON) {
More information about the Bf-blender-cvs
mailing list