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>2020-01-22 04:23:51 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-02-11 20:57:07 +0300
commit015d5eda884dfb10f8982f9b0f8d69c9ea540349 (patch)
treed48f2ef3aea20b1ff69e54b7990f32b22104791e /source/blender/blenkernel/intern/brush.c
parentf1f2d9fe745e37d7e7c286002ec3fa6243b499e3 (diff)
Sculpt: Clay Thumb Brush
This brush simulates deforming clay with your fingers, accumulating material during the stroke. It has a plane that tilts during the stroke in the front part of the brush to achieve this effect. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6238
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index 230fe831184..a2e3a997408 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -938,6 +938,13 @@ void BKE_brush_sculpt_reset(Brush *br)
br->autosmooth_factor = 0.25f;
br->normal_radius_factor = 0.75f;
break;
+ case SCULPT_TOOL_CLAY_THUMB:
+ br->alpha = 0.5f;
+ br->normal_radius_factor = 1.0f;
+ br->spacing = 6;
+ br->flag |= BRUSH_SIZE_PRESSURE;
+ br->flag &= ~BRUSH_SPACE_ATTEN;
+ break;
case SCULPT_TOOL_CLAY_STRIPS:
br->flag |= BRUSH_ACCUMULATE | BRUSH_SIZE_PRESSURE;
br->flag &= ~BRUSH_SPACE_ATTEN;
@@ -1019,6 +1026,7 @@ void BKE_brush_sculpt_reset(Brush *br)
case SCULPT_TOOL_DRAW_SHARP:
case SCULPT_TOOL_CLAY:
case SCULPT_TOOL_CLAY_STRIPS:
+ case SCULPT_TOOL_CLAY_THUMB:
case SCULPT_TOOL_LAYER:
case SCULPT_TOOL_INFLATE:
case SCULPT_TOOL_BLOB:
@@ -1428,6 +1436,7 @@ bool BKE_brush_sculpt_has_secondary_color(const Brush *brush)
SCULPT_TOOL_INFLATE,
SCULPT_TOOL_CLAY,
SCULPT_TOOL_CLAY_STRIPS,
+ SCULPT_TOOL_CLAY_THUMB,
SCULPT_TOOL_PINCH,
SCULPT_TOOL_CREASE,
SCULPT_TOOL_LAYER,