diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-06-29 09:52:11 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-06-29 09:52:11 +0400 |
commit | 13e4ae15428cc5f05d114ec522953e6cf06b4dbb (patch) | |
tree | 18786b895d3f1302130b1cc6ea64e60d51fd0d87 /source/blender/src/drawaction.c | |
parent | e27d635e186d6d8bb10a2efd5c43bbc76caff70f (diff) |
Action Editor - Group drawing tweaks:
* When all the action-channels for a group are hidden (i.e. their related bones are not visible), the group in question is also not drawn. This helps reduce clutter. (slikdigit funboard request)
* When a group has no channels belonging to it, the expand icon/button isn't drawn for that group.
Diffstat (limited to 'source/blender/src/drawaction.c')
-rw-r--r-- | source/blender/src/drawaction.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index 8c4958a651a..89466151a39 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -474,10 +474,13 @@ static void draw_channel_names(void) indent= 0; special= -1; - if (EXPANDED_AGRP(agrp)) - expand = ICON_TRIA_DOWN; - else - expand = ICON_TRIA_RIGHT; + /* only show expand if there are any channels */ + if (agrp->channels.first) { + if (EXPANDED_AGRP(agrp)) + expand = ICON_TRIA_DOWN; + else + expand = ICON_TRIA_RIGHT; + } if (EDITABLE_AGRP(agrp)) protect = ICON_UNLOCKED; |