[Bf-blender-cvs] [4bb90b8f4c3] blender-v3.2-release: D14887: Fix artifacts in hue filter

Ramil Roosileht noreply at git.blender.org
Tue May 10 04:48:45 CEST 2022


Commit: 4bb90b8f4c39388837bd78419d799923690c88c9
Author: Ramil Roosileht
Date:   Mon May 9 19:46:22 2022 -0700
Branches: blender-v3.2-release
https://developer.blender.org/rB4bb90b8f4c39388837bd78419d799923690c88c9

D14887: Fix artifacts in hue filter

The hue color filter now wraps correctly.  Fixes T97768.

Reviewed By: Julien Kaspar & Joseph Eagar
Differential Revision: https://developer.blender.org/D14887
Ref D14887

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

M	release/datafiles/locale
M	release/scripts/addons
M	source/blender/editors/sculpt_paint/sculpt_filter_color.c

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

diff --git a/release/datafiles/locale b/release/datafiles/locale
index 44cf4b4bf74..fb1eac2ec80 160000
--- a/release/datafiles/locale
+++ b/release/datafiles/locale
@@ -1 +1 @@
-Subproject commit 44cf4b4bf74f22fff55941e39cebeacec68a5a80
+Subproject commit fb1eac2ec80c0adee69990a5386b74a5bd4ca00c
diff --git a/release/scripts/addons b/release/scripts/addons
index 599a8db33c4..67e43f9083b 160000
--- a/release/scripts/addons
+++ b/release/scripts/addons
@@ -1 +1 @@
-Subproject commit 599a8db33c45c2ad94f8d482f01b281252799770
+Subproject commit 67e43f9083b79b33f5aa6ac4d1630946804d9534
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:



More information about the Bf-blender-cvs mailing list