diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-09 16:51:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-09 16:51:32 +0300 |
commit | 24e6411be6d0795d3107cc2d5dca8ae838e54663 (patch) | |
tree | 1c4bd6a8bb3daeff45bf2a1a08cb241defe692c0 /source/blender/blenkernel/intern/colortools.c | |
parent | 02b538ec8306205769400d94069a9945d4a78508 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern/colortools.c')
-rw-r--r-- | source/blender/blenkernel/intern/colortools.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |