diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-11-06 14:41:09 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-11-06 14:41:09 +0300 |
commit | 9cd76a66096491e8994090e1992bb54d19c61950 (patch) | |
tree | 9c15073744788663d85e43f74dbfe47a57f80bea /source/blender/src/header_nla.c | |
parent | f66aeb7a742a1668ebe9cdd7b06cc83606bb55f4 (diff) |
== "Extend" Transform Mode for Action + NLA Editors ==
Peach Request:
Now the Action and NLA editors have the "Extend" transform mode first seen in the Sequence Editor. Just use the EKEY to start transforming.
It works like Grab, except it only moves the keyframes/side of NLA-strip that was on the same side of the current-frame marker as the mouse was when transform started.
Diffstat (limited to 'source/blender/src/header_nla.c')
-rw-r--r-- | source/blender/src/header_nla.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/source/blender/src/header_nla.c b/source/blender/src/header_nla.c index 3a3d3dfdb49..96ea6c3d792 100644 --- a/source/blender/src/header_nla.c +++ b/source/blender/src/header_nla.c @@ -269,12 +269,16 @@ static void do_nla_strip_transformmenu(void *arg, int event) { switch(event) { case 0: /* grab/move */ - transform_nlachannel_keys ('g', 0); - update_for_newframe_muted(); + transform_nlachannel_keys('g', 0); + update_for_newframe_muted(); break; case 1: /* scale */ - transform_nlachannel_keys ('s', 0); - update_for_newframe_muted(); + transform_nlachannel_keys('s', 0); + update_for_newframe_muted(); + break; + case 2: /* extend */ + transform_nlachannel_keys('e', 0); + update_for_newframe_muted(); break; } allqueue(REDRAWVIEW3D, 0); @@ -289,8 +293,10 @@ static uiBlock *nla_strip_transformmenu(void *arg_unused) uiBlockSetButmFunc(block, do_nla_strip_transformmenu, NULL); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Grab/Move|G", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 0, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Grab/Extend from Frame|E", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 2, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Scale|S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 1, ""); - + + uiBlockSetDirection(block, UI_RIGHT); uiTextBoundsBlock(block, 60); return block; |