diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-11-21 20:57:26 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-11-21 20:58:48 +0300 |
commit | a47f694b86524459aa51c73f6cd65daf9c36e625 (patch) | |
tree | ccca9ee36decaa39c2e5b8d62dba284cf4e5af34 /source/blender/blenkernel/intern/brush.c | |
parent | 186bd1759f05c71c5c44391a5925b0f43cbd3383 (diff) |
Sculpt: Topology Slide/Relax
This commit implements the Topology Slide/Relax brush and the Relax mesh filter.
These tools are designed to move the topology on top of the mesh without affecting the volume.
The Topology Slide/Relax brush slides the topology of the mesh in the direction of the stroke. When pressing shift, it has an alternative smooth mode similar to the Relax Brush in the sculpt branch. It should be way more stable and produce fewer artifacts.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D6059
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 15a9b0b9c6a..8d256132aa4 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -926,6 +926,10 @@ void BKE_brush_sculpt_reset(Brush *br) br->curve_preset = BRUSH_CURVE_POW4; br->spacing = 5; break; + case SCULPT_TOOL_TOPOLOGY: + br->spacing = 10; + br->alpha = 1.0f; + break; case SCULPT_TOOL_CLAY: br->spacing = 6; br->normal_radius_factor = 0.75f; |