diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-06-22 15:09:31 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-06-22 15:09:31 +0400 |
commit | aad13c1b8715d6847641a5e50e3df3baf0bb0a1e (patch) | |
tree | 9338840cc4324f5f91400665272f15be91c5a79f /source/blender/src/drawaction.c | |
parent | 133c7fd7c734fe9e20be4a89b23047815141ca06 (diff) |
== IPO Muting ==
It is now possible to temporarily 'mute' and IPO-block or IPO-curve. This functionality has been requested by the Plumiferos team, and is based off Patch #6866 by Juho Vepsäläinen (bebraw).
Usage:
* In the IPO Editor header, there is a toggle button (open/closed eye used for Outliner Visibility restriction) beside the IPO-blocktype menu, when there is an active IPO-block in the IPO Editor.
* In the Action Editor, beside the 'lock' icon for channel protection on Action/Constraint channels, there is the open/closed 'eye' that can be toggled to set the mute status of said channel's IPO-block.
* Also in the Action Editor, you can mute individual IPO-curve channels in a similar manner.
Diffstat (limited to 'source/blender/src/drawaction.c')
-rw-r--r-- | source/blender/src/drawaction.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index f1aba590358..357614f24ab 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -404,6 +404,14 @@ static void draw_action_channel_names(bAction *act) glRasterPos2f(x+18, y-4); BMF_DrawString(G.font, achan->name); + /* draw 'eye' indicating whether channel's ipo is muted */ + if (achan->ipo) { + if (achan->ipo->muteipo) + BIF_icon_draw(NAMEWIDTH-32, y-CHANNELHEIGHT/2, ICON_RESTRICT_VIEW_ON); + else + BIF_icon_draw(NAMEWIDTH-32, y-CHANNELHEIGHT/2, ICON_RESTRICT_VIEW_OFF); + } + /* draw 'lock' indicating whether channel is protected */ if (EDITABLE_ACHAN(achan)==0) BIF_icon_draw(NAMEWIDTH-16, y-CHANNELHEIGHT/2, ICON_LOCKED); @@ -454,6 +462,12 @@ static void draw_action_channel_names(bAction *act) glRasterPos2f(x+24, y-4); BMF_DrawString(G.font, icu_name); + /* draw 'eye' indicating whether channel's ipo curve is muted */ + if (icu->flag & IPO_MUTE) + BIF_icon_draw(NAMEWIDTH-16, y-CHANNELHEIGHT/2, ICON_RESTRICT_VIEW_ON); + else + BIF_icon_draw(NAMEWIDTH-16, y-CHANNELHEIGHT/2, ICON_RESTRICT_VIEW_OFF); + #if 0 /* tempolarily disabled until all ipo-code can support this option */ /* draw 'lock' to indicate if ipo-curve channel is protected */ if (EDITABLE_ICU(icu)==0) @@ -506,6 +520,14 @@ static void draw_action_channel_names(bAction *act) glRasterPos2f(x+25, y-4); BMF_DrawString(G.font, conchan->name); + /* draw 'eye' indicating whether channel's ipo is muted */ + if (conchan->ipo) { + if (conchan->ipo->muteipo) + BIF_icon_draw(NAMEWIDTH-32, y-CHANNELHEIGHT/2, ICON_RESTRICT_VIEW_ON); + else + BIF_icon_draw(NAMEWIDTH-32, y-CHANNELHEIGHT/2, ICON_RESTRICT_VIEW_OFF); + } + /* draw 'lock' to indicate if constraint channel is protected */ if (EDITABLE_CONCHAN(conchan)==0) BIF_icon_draw(NAMEWIDTH-16, y-CHANNELHEIGHT/2, ICON_LOCKED); |