oh? will this affect old blends and if so how? cheers!
Daniel Salazar 3Developer.com On Sun, Apr 17, 2011 at 4:11 PM, Matt Ebb <[email protected]> wrote: > Revision: 36201 > > http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36201 > Author: broken > Date: 2011-04-17 22:11:23 +0000 (Sun, 17 Apr 2011) > Log Message: > ----------- > Committing patch [#26960] bu MiikaH, fixes bug: > [#26945] Hue Correct doesn't Hue But Rather Saturate > > thanks! > > Modified Paths: > -------------- > trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_huecorrect.c > > Modified: trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_huecorrect.c > =================================================================== > --- trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_huecorrect.c > 2011-04-17 14:20:43 UTC (rev 36200) > +++ trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_huecorrect.c > 2011-04-17 22:11:23 UTC (rev 36201) > @@ -53,7 +53,7 @@ > > /* adjust hue, scaling returned default 0.5 up to 1 */ > f = curvemapping_evaluateF(node->storage, 0, hsv[0]); > - hsv[0] *= (f * 2.f); > + hsv[0] += f-0.5f; > > /* adjust saturation, scaling returned default 0.5 up to 1 */ > f = curvemapping_evaluateF(node->storage, 1, hsv[0]); > @@ -63,7 +63,7 @@ > f = curvemapping_evaluateF(node->storage, 2, hsv[0]); > hsv[2] *= (f * 2.f); > > - CLAMP(hsv[0], 0.f, 1.f); > + hsv[0] = hsv[0] - floor(hsv[0]); /* mod 1.0 */ > CLAMP(hsv[1], 0.f, 1.f); > > /* convert back to rgb */ > @@ -81,7 +81,7 @@ > > /* adjust hue, scaling returned default 0.5 up to 1 */ > f = curvemapping_evaluateF(node->storage, 0, hsv[0]); > - hsv[0] *= (f * 2.f); > + hsv[0] += f-0.5f; > > /* adjust saturation, scaling returned default 0.5 up to 1 */ > f = curvemapping_evaluateF(node->storage, 1, hsv[0]); > @@ -91,7 +91,7 @@ > f = curvemapping_evaluateF(node->storage, 2, hsv[0]); > hsv[2] *= (f * 2.f); > > - CLAMP(hsv[0], 0.f, 1.f); > + hsv[0] = hsv[0] - floor(hsv[0]); /* mod 1.0 */ > CLAMP(hsv[1], 0.f, 1.f); > > /* convert back to rgb */ > > _______________________________________________ > Bf-blender-cvs mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-blender-cvs > _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
