diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-05-10 05:52:27 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-05-10 05:52:27 +0300 |
commit | 501ec81d3e4e956122199ad5f7f5f587ebf41096 (patch) | |
tree | 657d5247a53e7078b2a7dc98ebac461fff1925fb /source | |
parent | ccb4e298735f066f9e9074d88320001ded6b1918 (diff) | |
parent | 4bb90b8f4c39388837bd78419d799923690c88c9 (diff) |
Merge branch 'blender-v3.2-release'
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_filter_color.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.c b/source/blender/editors/sculpt_paint/sculpt_filter_color.c index c0db587f69a..9bddc2ad855 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c +++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c @@ -124,8 +124,8 @@ static void color_filter_task_cb(void *__restrict userdata, } case COLOR_FILTER_HUE: rgb_to_hsv_v(orig_color, hsv_color); - hue = hsv_color[0] + fade; - hsv_color[0] = fabs((hsv_color[0] + fade) - hue); + hue = hsv_color[0]; + hsv_color[0] = fmod((hsv_color[0] + fabs(fade)) - hue,1); hsv_to_rgb_v(hsv_color, final_color); break; case COLOR_FILTER_SATURATION: |