Fix cloth brush not working with anchored stroke

All brushes except for grab need delta for tip orientation in order to
work with anchored stroke, not only snake hook, which is the one that
needs it always.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D8789
This commit is contained in:
Pablo Dobarro
2020-09-02 23:51:52 +02:00
parent c05715b03f
commit 38737f780a

View File

@@ -6657,7 +6657,7 @@ static bool sculpt_needs_delta_from_anchored_origin(Brush *brush)
static bool sculpt_needs_delta_for_tip_orientation(Brush *brush)
{
if (brush->sculpt_tool == SCULPT_TOOL_CLOTH) {
return brush->cloth_deform_type == BRUSH_CLOTH_DEFORM_SNAKE_HOOK;
return brush->cloth_deform_type != BRUSH_CLOTH_DEFORM_GRAB;
}
return ELEM(brush->sculpt_tool,
SCULPT_TOOL_CLAY_STRIPS,