diff options
author | Ramil Roosileht <Limarest> | 2022-04-30 06:12:45 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-04-30 06:12:45 +0300 |
commit | 2fc6563a597ad8877fea5e580c87eb4e13e58961 (patch) | |
tree | bc8042a1c380a0af3c835d2b97ac7e2d3feed8a8 /source/blender | |
parent | eaa63c7d68a5a17f8f51e9346f58ad8a8a9dbfda (diff) |
D14808: Use saturation as multiplier for saturation filter
A change proposed in T97697, using existing saturation as a multiplier for the filter operation
{F13038602}
Review By: Joseph Eagar, Julian Kaspar
Differential Revision: https://developer.blender.org/D14808
Ref D14808
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_filter_color.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.c b/source/blender/editors/sculpt_paint/sculpt_filter_color.c index 3b1f80edfd0..09f13ff110d 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c +++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c @@ -132,7 +132,7 @@ static void color_filter_task_cb(void *__restrict userdata, rgb_to_hsv_v(orig_color, hsv_color); if (hsv_color[1] > 0.001f) { - hsv_color[1] = clamp_f(hsv_color[1] + fade, 0.0f, 1.0f); + hsv_color[1] = clamp_f(hsv_color[1] + fade * hsv_color[1], 0.0f, 1.0f); hsv_to_rgb_v(hsv_color, final_color); } else { |