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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-10-25 13:58:25 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-10-28 00:43:06 +0300
commit4f6b01ce1fa5d618b37c49170fc23fe78ff4b471 (patch)
treef6de2d157794dc9cac90667f311967952c472f9c /source/blender/blenkernel/intern/colortools.c
parent25b99b1922586386b89f19fe1f3f93d8a21869cd (diff)
Fix curve mapping linear preset not setting handle type correctly
Diffstat (limited to 'source/blender/blenkernel/intern/colortools.c')
-rw-r--r--source/blender/blenkernel/intern/colortools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c
index 7a3cc118eb5..92259235588 100644
--- a/source/blender/blenkernel/intern/colortools.c
+++ b/source/blender/blenkernel/intern/colortools.c
@@ -293,10 +293,10 @@ 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 = 0;
+ cuma->curve[0].flag |= CUMA_VECTOR;
cuma->curve[1].x = clipr->xmax;
cuma->curve[1].y = clipr->ymin;
- cuma->curve[1].flag = 0;
+ cuma->curve[1].flag |= CUMA_VECTOR;
break;
case CURVE_PRESET_SHARP:
cuma->curve[0].x = 0;