Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-09-03 00:51:52 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-09-03 17:46:36 +0300
commit38737f780a7ad5e540bd0803d4e72faf7b524f51 (patch)
tree6390c138ba20c89fee5396a9a946440711366224 /source/blender
parentc05715b03fe7b82d63ab4339f4fa1dac9884aad1 (diff)
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
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
1 files changed, 1 insertions, 1 deletions
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,