From 2fc6563a597ad8877fea5e580c87eb4e13e58961 Mon Sep 17 00:00:00 2001 From: Ramil Roosileht Date: Fri, 29 Apr 2022 20:12:45 -0700 Subject: 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 --- source/blender/editors/sculpt_paint/sculpt_filter_color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint/sculpt_filter_color.c') 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 { -- cgit v1.2.3