diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-06-29 07:35:55 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-06-29 07:35:55 +0300 |
commit | 2d0877ed7efe4f18fd4ae628d69991246b3019d4 (patch) | |
tree | ce9554cd89cb09254cfec0dde748b58fb83bef63 | |
parent | 3283bc63676cba58d7e1982c3616d84b98e73c33 (diff) |
Fix T99231: Wrong anchored mode test for smear brush
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index a0d540d152b..cbf7701efe9 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -4336,13 +4336,16 @@ static float sculpt_brush_dynamic_size_get(Brush *brush, StrokeCache *cache, flo * generally used to create grab deformations. */ static bool sculpt_needs_delta_from_anchored_origin(Brush *brush) { + if (brush->sculpt_tool == SCULPT_TOOL_SMEAR && (brush->flag & BRUSH_ANCHORED)) { + return true; + } + if (ELEM(brush->sculpt_tool, SCULPT_TOOL_GRAB, SCULPT_TOOL_POSE, SCULPT_TOOL_BOUNDARY, SCULPT_TOOL_THUMB, - SCULPT_TOOL_ELASTIC_DEFORM, - SCULPT_TOOL_SMEAR)) { + SCULPT_TOOL_ELASTIC_DEFORM)) { return true; } if (brush->sculpt_tool == SCULPT_TOOL_CLOTH && |