Commit bdd517bf authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Make LIghtness Strength care about opacity

In colorsmudge brush opacity slider is basically a master selector
that changes all the properties of the brush at the same time. It
feels like it should also affect the heightmap painting layer,
otherwise the result looks a bit weird (the color is changed very
subtly, but the heightmap is modified as if you press the brush
with full strength)
parent cae14d45
......@@ -126,7 +126,7 @@ KisColorSmudgeStrategyLightness::paintDab(const QRect &srcRect, const QRect &dst
const quint8 thresholdHeightmapOpacity = qRound(0.2 * 255.0);
quint8 heightmapOpacity = qRound(lightnessStrengthValue * 255.0);
quint8 heightmapOpacity = qRound(opacity * lightnessStrengthValue * 255.0);
if (heightmapOpacity < thresholdHeightmapOpacity) {
heightmapOpacity =
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment