[Bf-blender-cvs] [2d0877ed7ef] master: Fix T99231: Wrong anchored mode test for smear brush
Joseph Eagar
noreply at git.blender.org
Wed Jun 29 06:36:34 CEST 2022
Commit: 2d0877ed7efe4f18fd4ae628d69991246b3019d4
Author: Joseph Eagar
Date: Tue Jun 28 21:35:55 2022 -0700
Branches: master
https://developer.blender.org/rB2d0877ed7efe4f18fd4ae628d69991246b3019d4
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 a0d540d152b..cbf7701efe9 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -4336,13 +4336,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