From 9cd76a66096491e8994090e1992bb54d19c61950 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 6 Nov 2007 11:41:09 +0000 Subject: == "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. --- source/blender/src/header_action.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/blender/src/header_action.c') diff --git a/source/blender/src/header_action.c b/source/blender/src/header_action.c index c6d1b88c95c..4a803926a94 100644 --- a/source/blender/src/header_action.c +++ b/source/blender/src/header_action.c @@ -114,7 +114,6 @@ enum { enum { ACTMENU_KEY_DUPLICATE = 0, ACTMENU_KEY_DELETE, - ACTMENU_KEY_BAKE, ACTMENU_KEY_CLEAN }; @@ -128,7 +127,8 @@ enum { enum { ACTMENU_KEY_TRANSFORM_MOVE = 0, ACTMENU_KEY_TRANSFORM_SCALE, - ACTMENU_KEY_TRANSFORM_SLIDE + ACTMENU_KEY_TRANSFORM_SLIDE, + ACTMENU_KEY_TRANSFORM_EXTEND }; enum { @@ -594,6 +594,9 @@ static void do_action_keymenu_transformmenu(void *arg, int event) case ACTMENU_KEY_TRANSFORM_SLIDE: transform_action_keys('t', 0); break; + case ACTMENU_KEY_TRANSFORM_EXTEND: + transform_action_keys('e', 0); + break; } scrarea_queue_winredraw(curarea); @@ -611,6 +614,9 @@ static uiBlock *action_keymenu_transformmenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Grab/Move|G", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, ACTMENU_KEY_TRANSFORM_MOVE, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, + "Grab/Extend from Frame|E", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, + ACTMENU_KEY_TRANSFORM_EXTEND, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Scale|S", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, ACTMENU_KEY_TRANSFORM_SCALE, ""); -- cgit v1.2.3