Fix for hue correct node, was clamping value of hsv unnecessarily.
authorMatt Ebb <matt@mke3.net>
Tue, 13 Apr 2010 08:30:53 +0000 (08:30 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 13 Apr 2010 08:30:53 +0000 (08:30 +0000)
source/blender/nodes/intern/CMP_nodes/CMP_huecorrect.c

index 58850cf3568257d3bc3a5d062c1e7ff1f0f8cac9..95db66d92f7020fd9a1bc80c414cb534c7d03f26 100644 (file)
@@ -60,7 +60,6 @@ static void do_huecorrect(bNode *node, float *out, float *in)
        
        CLAMP(hsv[0], 0.f, 1.f);
        CLAMP(hsv[1], 0.f, 1.f);
-       CLAMP(hsv[2], 0.f, 1.f);
        
        /* convert back to rgb */
        hsv_to_rgb(hsv[0], hsv[1], hsv[2], out, out+1, out+2);
@@ -89,7 +88,6 @@ static void do_huecorrect_fac(bNode *node, float *out, float *in, float *fac)
        
        CLAMP(hsv[0], 0.f, 1.f);
        CLAMP(hsv[1], 0.f, 1.f);
-       CLAMP(hsv[2], 0.f, 1.f);
        
        /* convert back to rgb */
        hsv_to_rgb(hsv[0], hsv[1], hsv[2], rgb, rgb+1, rgb+2);