diff options
Diffstat (limited to 'source/blender/blenkernel/intern/colortools.c')
-rw-r--r-- | source/blender/blenkernel/intern/colortools.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c index 7f94f365925..063fc2eccab 100644 --- a/source/blender/blenkernel/intern/colortools.c +++ b/source/blender/blenkernel/intern/colortools.c @@ -878,6 +878,19 @@ void curvemapping_initialize(CurveMapping *cumap) } } +void curvemap_initialize(CurveMap *cuma) +{ + if (cuma->table == NULL) { + rctf clipr; + /* clip rectangle is not available here, but we can use a temporary + * rectangle with the same min/max values */ + clipr.xmin = cuma->mintable; + clipr.xmax = cuma->maxtable; + + curvemap_make_table(cuma, &clipr); + } +} + void curvemapping_table_RGBA(const CurveMapping *cumap, float **array, int *size) { int a; |