diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-07-17 03:27:25 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-07-17 03:27:25 +0300 |
commit | cd1e4ae4483056157f238f56f19367ad98ae3f3d (patch) | |
tree | 79bb5b0e1de6c24cb1e4aa7af688799d7c8b2578 /source/blender/editors/sculpt_paint/curves_sculpt_ops.cc | |
parent | 9a1488790532b6a64dea66cbe696ac35c70e6793 (diff) |
Fix T99644: Anchored brush mode fails for negative brushes
The stroke code now supports raycasting the original mesh.
This fixes anchored mode not working for negative brushes,
which might move the mesh out of the initial mouse cursor
position.
Diffstat (limited to 'source/blender/editors/sculpt_paint/curves_sculpt_ops.cc')
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_ops.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc index 5c73c7a37d3..47e0fe3a61a 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc @@ -147,7 +147,10 @@ struct SculptCurvesBrushStrokeData { PaintStroke *stroke; }; -static bool stroke_get_location(bContext *C, float out[3], const float mouse[2]) +static bool stroke_get_location(bContext *C, + float out[3], + const float mouse[2], + bool UNUSED(force_original)) { out[0] = mouse[0]; out[1] = mouse[1]; |