Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-12-20 02:29:42 +0300
committerJoshua Leung <aligorith@gmail.com>2007-12-20 02:29:42 +0300
commit0a682cb50fe46a0e4327546cb74370c8e88fa231 (patch)
treea75a1ff4612eab84951351f7a18b7330b6ba78e4 /source/blender/src/header_action.c
parent2a43932a74586ea5c88637d423e93ffb350d4074 (diff)
== 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...
Diffstat (limited to 'source/blender/src/header_action.c')
-rw-r--r--source/blender/src/header_action.c9
1 files changed, 9 insertions, 0 deletions
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,