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-19 00:40:46 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-11-21 20:04:46 +0300
commit316107d4cd11bb0c737bb53456244df409329da2 (patch)
tree0bfa1b87147a79de17112e24a6b65e1d7489c020 /source/blender/blenkernel/intern/brush.c
parentc7ade50deee781493e40d6851159e40e1c4a7d5d (diff)
Sculpt: New Clay Brush
The previous Clay brush was similar to flatten. Now it has a different plane calculation and falloff, based on the position of the vertices before deforming them, so it feels more like adding clay to the model. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6228
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index a873f3a3f13..eebed72103f 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -927,7 +927,8 @@ void BKE_brush_sculpt_reset(Brush *br)
br->spacing = 5;
break;
case SCULPT_TOOL_CLAY:
- br->flag |= BRUSH_FRONTFACE;
+ br->spacing = 6;
+ br->normal_radius_factor = 0.75f;
break;
case SCULPT_TOOL_CLAY_STRIPS:
br->flag |= BRUSH_ACCUMULATE | BRUSH_SIZE_PRESSURE;