Commit: 4f6b01ce1fa5d618b37c49170fc23fe78ff4b471
Author: Sergey Sharybin
Date: Sun Oct 25 15:58:25 2015 +0500
Branches: master
https://developer.blender.org/rB4f6b01ce1fa5d618b37c49170fc23fe78ff4b471
Fix curve mapping linear preset not setting handle type correctly
===================================================================
M source/blender/blenkernel/intern/colortools.c
===================================================================
diff --git a/source/blender/blenkernel/intern/colortools.c
b/source/blender/blenkernel/intern/colortools.c
index 7a3cc11..9225923 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;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs