[Bf-blender-cvs] [4b598739c5c] master: Curves: disable stroke spacing for curve sculpt brushes

Jacques Lucke noreply at git.blender.org
Tue Mar 8 10:44:22 CET 2022


Commit: 4b598739c5c18c83048646e27e91f1f0bf53acc6
Author: Jacques Lucke
Date:   Tue Mar 8 10:33:51 2022 +0100
Branches: master
https://developer.blender.org/rB4b598739c5c18c83048646e27e91f1f0bf53acc6

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.

===================================================================

M	source/blender/editors/sculpt_paint/paint_stroke.c

===================================================================

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);
 }



More information about the Bf-blender-cvs mailing list