From 4b598739c5c18c83048646e27e91f1f0bf53acc6 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 8 Mar 2022 10:33:51 +0100 Subject: Curves: disable stroke spacing for curve sculpt brushes This makes the brushes more smooth, because the brush has an effect after every mouse move, instead of only every x pixels. For this to work well, the brushes have to look at the stroke segments instead of at the mouse positions separately. A more fine grained check might be added in the future. --- source/blender/editors/sculpt_paint/paint_stroke.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index ae7570d21a1..1705e36363e 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -1000,6 +1000,10 @@ bool paint_space_stroke_enabled(Brush *br, ePaintMode mode) return true; } + if (mode == PAINT_MODE_SCULPT_CURVES) { + return false; + } + return paint_supports_dynamic_size(br, mode); } -- cgit v1.2.3