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:
authorJean Da Costa <jeacom256>2019-01-23 20:38:40 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-23 22:25:14 +0300
commitb592e34559da82f86339e97b25ceac9f844719ab (patch)
tree0f6f0d9a04ccd8eb0551a8c0cdc5ad4b80c9996c /source/blender/blenkernel
parent4e9817a4fb2986b3d08da8380a6ce1d40c108970 (diff)
Sculpt: add Topology Rake, to align edges along brush while painting.
This helps to generate cleaner topology and define sharp features for dynamic topology. Best used on relatively low-poly meshes, it is not needed as much for high detail areas and has a performance impact. Differential Revision: https://developer.blender.org/D4189
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/brush.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index f9ba8765d04..bb42f7412e6 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -79,6 +79,7 @@ static void brush_defaults(Brush *brush)
brush->size = 35; /* radius of the brush in pixels */
brush->alpha = 0.5f; /* brush strength/intensity probably variable should be renamed? */
brush->autosmooth_factor = 0.0f;
+ brush->topology_rake_factor = 0.0f;
brush->crease_pinch_factor = 0.5f;
brush->sculpt_plane = SCULPT_DISP_DIR_AREA;
brush->plane_offset = 0.0f; /* how far above or below the plane that is found by averaging the faces */
@@ -739,6 +740,8 @@ void BKE_brush_debug_print_state(Brush *br)
BR_TEST(autosmooth_factor, f);
+ BR_TEST(topology_rake_factor, f);
+
BR_TEST(crease_pinch_factor, f);
BR_TEST(plane_trim, f);