diff options
author | Joshua Leung <aligorith@gmail.com> | 2006-11-13 11:56:02 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2006-11-13 11:56:02 +0300 |
commit | 6e46d87dd7c4de27def8449f4dc6b7b0e7146cb0 (patch) | |
tree | 739c350c205e57e7a15d8e8d288443aee4515c22 /source/blender/src/header_ipo.c | |
parent | 32d49a8dae51f70c9d3a225b4c7764d1d1d96632 (diff) |
== IPO Editor Tools ==
* IPO Curve Smoothing:
This new tool smoothes (i.e. resets the adjusts) the handles on selected
ipo curves in ipo editor. The core code is based upon a python script
that used to do this (author unknown).
- Available from menus
- Hotkey Shift O
- Only available from ipo editor
If the usefulness of this tool is limited (adding bloat), I will consider removing it.
Diffstat (limited to 'source/blender/src/header_ipo.c')
-rw-r--r-- | source/blender/src/header_ipo.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/src/header_ipo.c b/source/blender/src/header_ipo.c index b0e64d77830..aa446fc50dc 100644 --- a/source/blender/src/header_ipo.c +++ b/source/blender/src/header_ipo.c @@ -585,6 +585,9 @@ static void do_ipo_editmenu(void *arg, int event) clean_ipo(sipo->ipo, 1); } break; + case 9: /* smooth ipo */ + smooth_ipo(); + break; } } @@ -641,6 +644,7 @@ static uiBlock *ipo_editmenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Duplicate|Shift D", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 1, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Record Mouse Movement|R", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 2, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Clean IPO Curves|O", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 8, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Smooth IPO Curves|Shift O", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 9, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Delete|X", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 0, ""); uiDefIconTextBlockBut(block, ipo_editmenu_joinmenu, NULL, ICON_RIGHTARROW_THIN, "Join", 0, yco-=20, 120, 19, ""); @@ -707,7 +711,11 @@ static void do_ipo_viewmenu(void *arg, int event) G.v2d->flag ^= V2D_VIEWLOCK; if(G.v2d->flag & V2D_VIEWLOCK) view2d_do_locks(curarea, 0); - break; + break; + case 10: /* center view to current frame */ + center_currframe(); + scrarea_queue_winredraw(curarea); + break; } } |