From 0a682cb50fe46a0e4327546cb74370c8e88fa231 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 19 Dec 2007 23:29:42 +0000 Subject: == Action Editor - Show Hidden Channels == This option (found in the View menu) shows all Action Channels, regardless of whether the data they represent is visible or not. It's better than having to have multiple pinned Action Editors open to be able to move all keyframes of all bones at once (when blocking for example). Also, fixed some compile errors caused by previous commit... --- source/blender/src/header_action.c | 9 +++++++++ 1 file changed, 9 insertions(+) (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 6d01dcf6bab..9e858cb8307 100644 --- a/source/blender/src/header_action.c +++ b/source/blender/src/header_action.c @@ -93,6 +93,7 @@ enum { ACTMENU_VIEW_NEXTMARKER, ACTMENU_VIEW_PREVMARKER, ACTMENU_VIEW_TIME, + ACTMENU_VIEW_NOHIDE }; enum { @@ -299,6 +300,9 @@ static void do_action_viewmenu(void *arg, int event) case ACTMENU_VIEW_TIME: /* switch between frames and seconds display */ G.saction->flag ^= SACTION_DRAWTIME; break; + case ACTMENU_VIEW_NOHIDE: /* Show hidden channels */ + G.saction->flag ^= SACTION_NOHIDE; + break; } allqueue(REDRAWVIEW3D, 0); } @@ -340,6 +344,11 @@ static uiBlock *action_viewmenu(void *arg_unused) menuwidth, 19, NULL, 0.0, 0.0, 1, ACTMENU_VIEW_SLIDERS, ""); + uiDefIconTextBut(block, BUTM, 1, (G.saction->flag & SACTION_NOHIDE)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT, + "Show Hidden Channels|", 0, yco-=20, + menuwidth, 19, NULL, 0.0, 0.0, 1, + ACTMENU_VIEW_NOHIDE, ""); + uiDefIconTextBut(block, BUTM, 1, (G.v2d->flag & V2D_VIEWLOCK)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT, "Lock Time to Other Windows|", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, -- cgit v1.2.3