Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2019-11-14 21:12:11 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-11-21 20:02:33 +0300
commitc7ade50deee781493e40d6851159e40e1c4a7d5d (patch)
treef534595db43cccbe00cf9f22ae9a9ba240822bba /source/blender/blenkernel/intern/brush.c
parent15f82278d5d4ca2b282cb8e5e377965cf28aaa17 (diff)
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
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c5
1 files changed, 3 insertions, 2 deletions
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;