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/paint_intern.h | |
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/paint_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index 02c3b5be8b9..99c25953d50 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -46,7 +46,10 @@ typedef struct CoNo { /* paint_stroke.c */ -typedef bool (*StrokeGetLocation)(struct bContext *C, float location[3], const float mouse[2]); +typedef bool (*StrokeGetLocation)(struct bContext *C, + float location[3], + const float mouse[2], + bool force_original); typedef bool (*StrokeTestStart)(struct bContext *C, struct wmOperator *op, const float mouse[2]); typedef void (*StrokeUpdateStep)(struct bContext *C, struct wmOperator *op, |