From c7ade50deee781493e40d6851159e40e1c4a7d5d Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Thu, 14 Nov 2019 19:12:11 +0100 Subject: Clay Strips: Input pressure curve and new defaults By squaring the pen pressure and disabling BRUSH_SPACE_ATTEN the brush feels like it has a bigger strength range, wich makes it easier to control when applying less pressure in order to smooth sculpted surfaces. Each brush should have a custom input pressure curve by default to get an optimal behaviour and make all brushes consistent, but that is going to take some time to get it right. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6214 --- source/blender/blenkernel/intern/brush.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/brush.c') diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 75669e8289a..a873f3a3f13 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -930,8 +930,9 @@ void BKE_brush_sculpt_reset(Brush *br) br->flag |= BRUSH_FRONTFACE; break; case SCULPT_TOOL_CLAY_STRIPS: - br->flag |= BRUSH_ACCUMULATE; - br->alpha = 0.7f; + br->flag |= BRUSH_ACCUMULATE | BRUSH_SIZE_PRESSURE; + br->flag &= ~BRUSH_SPACE_ATTEN; + br->alpha = 0.6f; br->normal_radius_factor = 1.55f; br->curve_preset = BRUSH_CURVE_SPHERE; br->spacing = 6; -- cgit v1.2.3