[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14310] trunk/blender/source/blender/ blenkernel/intern/colortools.c: BUGFIX 8824: RGB Curves now work correctly with "use clipping" option
Hamed Zaghaghi
hamed.zaghaghi at gmail.com
Tue Apr 1 23:09:52 CEST 2008
Revision: 14310
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14310
Author: zaghaghi
Date: 2008-04-01 23:09:50 +0200 (Tue, 01 Apr 2008)
Log Message:
-----------
BUGFIX 8824: RGB Curves now work correctly with "use clipping" option
on with maximum values greater than 1.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/colortools.c
Modified: trunk/blender/source/blender/blenkernel/intern/colortools.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/colortools.c 2008-04-01 21:07:32 UTC (rev 14309)
+++ trunk/blender/source/blender/blenkernel/intern/colortools.c 2008-04-01 21:09:50 UTC (rev 14310)
@@ -592,7 +592,8 @@
fi= (value-cuma->mintable)*cuma->range;
i= (int)fi;
- if(fi<0.0f || fi>cuma->range)
+ /* fi is table float index and should check against table range i.e. [0.0 CM_TABLE] */
+ if(fi<0.0f || fi>CM_TABLE)
return curvemap_calc_extend(cuma, value, &cuma->table[0].x, &cuma->table[CM_TABLE].x);
else {
if(i<0) return cuma->table[0].y;
More information about the Bf-blender-cvs
mailing list