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
This commit is contained in:
Pablo Dobarro 2020-11-02 20:27:42 +01:00
parent 4413f481be
commit dc3fb012e7
Notes: blender-bot 2023-02-14 05:53:38 +01:00
Referenced by issue #82297, Strength modification in "Sculpt Mode / Smear Brush" has no effect.
1 changed files with 1 additions and 1 deletions

View File

@ -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);