Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHamed Zaghaghi <hamed.zaghaghi@gmail.com>2008-04-02 01:09:50 +0400
committerHamed Zaghaghi <hamed.zaghaghi@gmail.com>2008-04-02 01:09:50 +0400
commitcf12557c5b43ba7bccc22519193902073a0c4bf9 (patch)
treeb8de21951e2ea73e111b3feae24d92ac37d83089 /source/blender/blenkernel/intern/colortools.c
parenteec645433562141a99d6462be0e1ac51ff180343 (diff)
BUGFIX 8824: RGB Curves now work correctly with "use clipping" option
on with maximum values greater than 1.
Diffstat (limited to 'source/blender/blenkernel/intern/colortools.c')
-rw-r--r--source/blender/blenkernel/intern/colortools.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c
index e4336576e2a..295b8fe3552 100644
--- a/source/blender/blenkernel/intern/colortools.c
+++ b/source/blender/blenkernel/intern/colortools.c
@@ -592,7 +592,8 @@ float curvemap_evaluateF(CurveMap *cuma, float value)
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;