diff options
author | Ton Roosendaal <ton@blender.org> | 2006-10-28 00:27:13 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-10-28 00:27:13 +0400 |
commit | 129cab4137d2a928e68eec7f7647b1f2b690686a (patch) | |
tree | dbb71785f612bbb1e919f102cfc78213f7302f4e /source/blender/src/butspace.c | |
parent | a7d3a58ba9e7a42781a21c8015cdd51a76473056 (diff) |
New Curves Widget option: curves can get extrapolated extension.
Especially for Compositing it was annoying that colors always got clipped
in the 0.0-1.0 range. For this reason, extrapolated Curves now is the
default. Old saved files still have horizontal extrapolation.
Set the option with 'Tools' menu (wrench icon). This is a setting per
curve, so you might need to set all 4 curves for an RGBA curves widget.
Diffstat (limited to 'source/blender/src/butspace.c')
-rw-r--r-- | source/blender/src/butspace.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/src/butspace.c b/source/blender/src/butspace.c index a4a8a55aac3..507e89b3122 100644 --- a/source/blender/src/butspace.c +++ b/source/blender/src/butspace.c @@ -403,6 +403,14 @@ static void curvemap_tools_dofunc(void *cumap_v, int event) curvemap_sethandle(cuma, 0); curvemapping_changed(cumap, 0); break; + case 4: /* extend horiz */ + cuma->flag &= ~CUMA_EXTEND_EXTRAPOLATE; + curvemapping_changed(cumap, 0); + break; + case 5: /* extend extrapolate */ + cuma->flag |= CUMA_EXTEND_EXTRAPOLATE; + curvemapping_changed(cumap, 0); + break; } addqueue(curarea->win, REDRAW, 1); } @@ -418,6 +426,8 @@ static uiBlock *curvemap_tools_func(void *cumap_v) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Reset View", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 1, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Vector Handle", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 2, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Auto Handle", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 3, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Extend Horizontal", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 4, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Extend Extrapolated", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 5, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Reset Curve", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 0, ""); uiBlockSetDirection(block, UI_RIGHT); |