[Bf-blender-cvs] [38737f780a7] master: Fix cloth brush not working with anchored stroke

Pablo Dobarro noreply at git.blender.org
Thu Sep 3 16:46:52 CEST 2020


Commit: 38737f780a7ad5e540bd0803d4e72faf7b524f51
Author: Pablo Dobarro
Date:   Wed Sep 2 23:51:52 2020 +0200
Branches: master
https://developer.blender.org/rB38737f780a7ad5e540bd0803d4e72faf7b524f51

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

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

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,



More information about the Bf-blender-cvs mailing list