From 42946c37c789b5a57c45ff2637c79d194beb33d0 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 14 Feb 2014 16:00:28 +0100 Subject: Fix T38606: C curve in the curve mapping compositing node not extrapolating correct. The "premultiply" optimization here did not take the extrapolation into account. --- source/blender/makesdna/DNA_color_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_color_types.h') diff --git a/source/blender/makesdna/DNA_color_types.h b/source/blender/makesdna/DNA_color_types.h index 50bbc04ccb1..e3731129632 100644 --- a/source/blender/makesdna/DNA_color_types.h +++ b/source/blender/makesdna/DNA_color_types.h @@ -60,7 +60,10 @@ typedef struct CurveMap { float ext_in[2], ext_out[2]; /* for extrapolated curves, the direction vector */ CurveMapPoint *curve; /* actual curve */ CurveMapPoint *table; /* display and evaluate table */ + CurveMapPoint *premultable; /* for RGB curves, premulled table */ + float premul_ext_in[2]; /* for RGB curves, premulled extrapolation vector */ + float premul_ext_out[2]; } CurveMap; /* cuma->flag */ -- cgit v1.2.3