diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-04-29 09:22:16 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-04-29 09:24:10 +0300 |
commit | 65e7219706ece1d08c7a1e0c93497235ae6782b1 (patch) | |
tree | d951fb9dcc17272d39fbf3ac8cfcc648efa844a7 | |
parent | cc8fe1a1cbc63db66c038773b070dca14e82cebb (diff) |
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.
-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 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); } |