Fix T99231: Wrong anchored mode test for smear brush

This commit is contained in:
Joseph Eagar 2022-06-28 21:35:55 -07:00
parent 3283bc6367
commit 2d0877ed7e
Notes: blender-bot 2023-02-14 07:31:32 +01:00
Referenced by issue #99231, Regression: Sculpt Mode Smear Brush broken
1 changed files with 5 additions and 2 deletions

View File

@ -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 &&