[Bf-blender-cvs] [65e7219706e] master: Fix T97097: Color filter saturate affects non-colors
Joseph Eagar
noreply at git.blender.org
Fri Apr 29 08:24:25 CEST 2022
Commit: 65e7219706ece1d08c7a1e0c93497235ae6782b1
Author: Joseph Eagar
Date: Thu Apr 28 23:22:16 2022 -0700
Branches: master
https://developer.blender.org/rB65e7219706ece1d08c7a1e0c93497235ae6782b1
Fix T97097: Color filter saturate affects non-colors
Saturation is now tested for > 0.001 instead of != 0.
We may wish to turn the limit into an operator property
in the future.
===================================================================
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 a705f6aa8a8..3b1f80edfd0 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
@@ -131,7 +131,7 @@ static void color_filter_task_cb(void *__restrict userdata,
case COLOR_FILTER_SATURATION:
rgb_to_hsv_v(orig_color, hsv_color);
- if (hsv_color[1] != 0.0f) {
+ if (hsv_color[1] > 0.001f) {
hsv_color[1] = clamp_f(hsv_color[1] + fade, 0.0f, 1.0f);
hsv_to_rgb_v(hsv_color, final_color);
}
More information about the Bf-blender-cvs
mailing list