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/sculpt_transform.c | |
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/sculpt_transform.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_transform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_transform.c b/source/blender/editors/sculpt_paint/sculpt_transform.c index 365000ab163..8856e3bf3db 100644 --- a/source/blender/editors/sculpt_paint/sculpt_transform.c +++ b/source/blender/editors/sculpt_paint/sculpt_transform.c @@ -426,7 +426,7 @@ static int sculpt_set_pivot_position_exec(bContext *C, wmOperator *op) RNA_float_get(op->ptr, "mouse_x"), RNA_float_get(op->ptr, "mouse_y"), }; - if (SCULPT_stroke_get_location(C, stroke_location, mval)) { + if (SCULPT_stroke_get_location(C, stroke_location, mval, false)) { copy_v3_v3(ss->pivot_pos, stroke_location); } } |