diff options
author | Jacques Lucke <jacques@blender.org> | 2022-03-08 12:33:51 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-03-08 12:33:51 +0300 |
commit | 4b598739c5c18c83048646e27e91f1f0bf53acc6 (patch) | |
tree | 6af4f0063b78d799feec340cd437ee0d1c52f657 /source | |
parent | b588c09eee40db46ed10ed5f723c89aef7ea816b (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |