From 38737f780a7ad5e540bd0803d4e72faf7b524f51 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Wed, 2 Sep 2020 23:51:52 +0200 Subject: 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 --- source/blender/editors/sculpt_paint/sculpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 1601bae628e..efda90d64c7 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -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, -- cgit v1.2.3