diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-01-17 06:24:21 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-01-17 06:24:21 +0300 |
commit | a3c9ae8a8819d08f47234f0c065fbdb5fd385c59 (patch) | |
tree | 7dc10a9d9641fd8025dbfc3e160c016c04088b33 /source/blender/src/header_nla.c | |
parent | ffa0cfc9d9d6e2ff4134622f39b2467f96b0438c (diff) |
== NLA Visibility Tweak ==
In a few cases, it may be helpful to turn off the 'only show objects that are
in visible scene layers in the nla' trick. By default though, this is still on. Find
the switch in the View menu of NLA editor.
Diffstat (limited to 'source/blender/src/header_nla.c')
-rw-r--r-- | source/blender/src/header_nla.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/src/header_nla.c b/source/blender/src/header_nla.c index 2d33ee098de..918383478e5 100644 --- a/source/blender/src/header_nla.c +++ b/source/blender/src/header_nla.c @@ -114,11 +114,14 @@ static void do_nla_viewmenu(void *arg, int event) case 4: /* Maximize Window */ /* using event B_FULL */ break; - case 5: + case 5: /* Update automatically */ G.v2d->flag ^= V2D_VIEWLOCK; if(G.v2d->flag & V2D_VIEWLOCK) view2d_do_locks(curarea, 0); - break; + break; + case 6: /* Show all objects that have keyframes? */ + G.snla->flag ^= SNLA_ALLKEYED; + break; } } @@ -131,6 +134,11 @@ static uiBlock *nla_viewmenu(void *arg_unused) block= uiNewBlock(&curarea->uiblocks, "nla_viewmenu", UI_EMBOSSP, UI_HELV, curarea->headwin); uiBlockSetButmFunc(block, do_nla_viewmenu, NULL); + uiDefIconTextBut(block, BUTM, 1, (G.snla->flag & SNLA_ALLKEYED)?ICON_CHECKBOX_DEHLT:ICON_CHECKBOX_HLT, + "Only Objects On Visible Layers|", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 6, ""); + + uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); + if(BTST(G.snla->lock, 0)) { uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Update Automatically|", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 0, ""); } else { |