From dc3fb012e749e887e8439df7c4737295c6c0234d Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Mon, 2 Nov 2020 20:27:42 +0100 Subject: Fix T82297: Brush alpha not affecting smear tools strength The strength of this brush needs to take alpha into account Reviewed By: sergey Maniphest Tasks: T82297 Differential Revision: https://developer.blender.org/D9419 --- source/blender/editors/sculpt_paint/sculpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '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 754204201f4..d4bd15badac 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -2347,7 +2347,7 @@ static float brush_strength(const Sculpt *sd, final_pressure = pressure * pressure; return final_pressure * overlap * feather; case SCULPT_TOOL_SMEAR: - return pressure * overlap * feather; + return alpha * pressure * overlap * feather; case SCULPT_TOOL_CLAY_STRIPS: /* Clay Strips needs less strength to compensate the curve. */ final_pressure = powf(pressure, 1.5f); -- cgit v1.2.3