From 24e6411be6d0795d3107cc2d5dca8ae838e54663 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 9 Feb 2016 14:51:32 +0100 Subject: Fix T47366: Single slope linear curve was wrongly using vector handle Vector handle is only required for a symmetric curve to give nice a /\ shape. Single slope curves better to use AUTO handle by default. --- source/blender/blenkernel/intern/colortools.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel') diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c index 3fb9ff1c9e8..df45761fbe1 100644 --- a/source/blender/blenkernel/intern/colortools.c +++ b/source/blender/blenkernel/intern/colortools.c @@ -293,10 +293,12 @@ void curvemap_reset(CurveMap *cuma, const rctf *clipr, int preset, int slope) case CURVE_PRESET_LINE: cuma->curve[0].x = clipr->xmin; cuma->curve[0].y = clipr->ymax; - cuma->curve[0].flag |= CUMA_VECTOR; cuma->curve[1].x = clipr->xmax; cuma->curve[1].y = clipr->ymin; - cuma->curve[1].flag |= CUMA_VECTOR; + if (slope == CURVEMAP_SLOPE_POS_NEG) { + cuma->curve[0].flag |= CUMA_VECTOR; + cuma->curve[1].flag |= CUMA_VECTOR; + } break; case CURVE_PRESET_SHARP: cuma->curve[0].x = 0; -- cgit v1.2.3