diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-06-22 15:55:00 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-06-22 15:55:00 +0400 |
commit | 188e3ede4fceb1187fe06800542e2b4123355a9c (patch) | |
tree | 7408210c8f9e88324b93572ff3897ab68f40b216 /source/blender/src/drawnla.c | |
parent | aad13c1b8715d6847641a5e50e3df3baf0bb0a1e (diff) |
== NLA/IPO Muting ==
This commit adds a few open/closed 'eye' icons to the NLA editor to toggle IPO-block muting on Object (IPO) channels, and Action Strip muting on Action Strips, like in the Action Editor.
Diffstat (limited to 'source/blender/src/drawnla.c')
-rw-r--r-- | source/blender/src/drawnla.c | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/source/blender/src/drawnla.c b/source/blender/src/drawnla.c index de35a0f2906..a7f81b758a3 100644 --- a/source/blender/src/drawnla.c +++ b/source/blender/src/drawnla.c @@ -148,6 +148,15 @@ static void draw_nla_channels(void) else BIF_icon_draw(x+17, y-8, ICON_ACTION); } + + /* icon to indicate if ipo-channel muted */ + if (ob->ipo) { + if (ob->ipo->muteipo) + BIF_icon_draw(NLAWIDTH-16, y-NLACHANNELHEIGHT/2, ICON_RESTRICT_VIEW_ON); + else + BIF_icon_draw(NLAWIDTH-16, y-NLACHANNELHEIGHT/2, ICON_RESTRICT_VIEW_OFF); + } + glDisable(GL_BLEND); y-=NLACHANNELHEIGHT+NLACHANNELSKIP; @@ -192,16 +201,20 @@ static void draw_nla_channels(void) glRasterPos2f(x+48, y-4); BMF_DrawString(G.font, strip->act->id.name+2); - if(strip->flag & ACTSTRIP_ACTIVE) { - glEnable(GL_BLEND); + glEnable(GL_BLEND); + + if(strip->flag & ACTSTRIP_ACTIVE) BIF_icon_draw(x+16, y-8, ICON_DOT); - glDisable(GL_BLEND); - } - if(strip->modifiers.first) { - glEnable(GL_BLEND); + + if(strip->modifiers.first) BIF_icon_draw(x+34, y-8, ICON_MODIFIER); - glDisable(GL_BLEND); - } + + if(strip->flag & ACTSTRIP_MUTE) + BIF_icon_draw(NLAWIDTH-16, y-NLACHANNELHEIGHT/2, ICON_RESTRICT_VIEW_ON); + else + BIF_icon_draw(NLAWIDTH-16, y-NLACHANNELHEIGHT/2, ICON_RESTRICT_VIEW_OFF); + + glDisable(GL_BLEND); } y-=(NLACHANNELHEIGHT+NLACHANNELSKIP); |