Fix T99231: Wrong anchored mode test for smear brush
This commit is contained in:
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
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue