[Bf-blender-cvs] [2fc6563a597] master: D14808: Use saturation as multiplier for saturation filter

Ramil Roosileht noreply at git.blender.org
Sat Apr 30 05:17:03 CEST 2022


Commit: 2fc6563a597ad8877fea5e580c87eb4e13e58961
Author: Ramil Roosileht
Date:   Fri Apr 29 20:12:45 2022 -0700
Branches: master
https://developer.blender.org/rB2fc6563a597ad8877fea5e580c87eb4e13e58961

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

===================================================================

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



More information about the Bf-blender-cvs mailing list