[Bf-blender-cvs] [0ff60d75cf0] blender-v3.2-release: Fix T99231: Wrong anchored mode test for smear brush

Joseph Eagar noreply at git.blender.org
Wed Jun 29 09:18:54 CEST 2022


Commit: 0ff60d75cf05baa583035122890f9486f2917071
Author: Joseph Eagar
Date:   Tue Jun 28 21:35:55 2022 -0700
Branches: blender-v3.2-release
https://developer.blender.org/rB0ff60d75cf05baa583035122890f9486f2917071

Fix T99231: Wrong anchored mode test for smear brush

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

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 e61fef50e2f..3f726531a05 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -4312,13 +4312,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 &&



More information about the Bf-blender-cvs mailing list