From 2fe92248a0cf05f5664fc65df47641982beb2eaa Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 Jan 2013 04:00:51 +0000 Subject: [PATCH] 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. --- source/blender/editors/sculpt_paint/sculpt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 2758cc29a3e..fa739a9e98d 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -3906,12 +3906,13 @@ static void sculpt_update_cache_variants(bContext *C, Sculpt *sd, Object *ob, } } - 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;