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
This commit is contained in:
Ramil Roosileht 2022-04-29 20:12:45 -07:00 committed by Joseph Eagar
parent eaa63c7d68
commit 2fc6563a59
Notes: blender-bot 2023-02-14 11:18:07 +01:00
Referenced by issue #97697, Sculpt Mode: Correct color filter saturation
1 changed files with 1 additions and 1 deletions

View File

@ -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 {