From e8111bd39d1d8c389dfdc65d9dd68fc5b23fa51e Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 12 Sep 2006 08:29:50 +0000 Subject: Patch 4981 (Tom Musgrave, revised) New option: "Select Collumn" in Action editor. This selects all 'keys' on the same time, based on already existing selection. Works for Actions as well as Shape Keys. Hotkey K. --- source/blender/src/header_action.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (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 e6b4442bdd5..e5fc8335721 100644 --- a/source/blender/src/header_action.c +++ b/source/blender/src/header_action.c @@ -87,6 +87,7 @@ #define ACTMENU_SEL_BORDER 0 #define ACTMENU_SEL_ALL_KEYS 1 #define ACTMENU_SEL_ALL_CHAN 2 +#define ACTMENU_SEL_COLLUMN 3 #define ACTMENU_KEY_DUPLICATE 0 #define ACTMENU_KEY_DELETE 1 @@ -356,6 +357,10 @@ static void do_action_selectmenu(void *arg, int event) allqueue(REDRAWNLA, 0); allqueue (REDRAWIPO, 0); break; + + case ACTMENU_SEL_COLLUMN: + addqueue (curarea->win, KKEY, 1); + break; } } @@ -382,7 +387,12 @@ static uiBlock *action_selectmenu(void *arg_unused) "Select/Deselect All Channels", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, ACTMENU_SEL_ALL_CHAN, ""); - + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, + "Select Collumn|K", 0, yco-=20, + menuwidth, 19, NULL, 0.0, 0.0, 0, + ACTMENU_SEL_COLLUMN, ""); + + if(curarea->headertype==HEADERTOP) { uiBlockSetDirection(block, UI_DOWN); } -- cgit v1.2.3