From 2e95780d3ddfecef2ae225e6cb30a296ff54c522 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 17 Mar 2008 13:02:48 +0000 Subject: [PATCH] Bugfix: keyframes of hidden actions in action groups were still drawing in the group row. --- source/blender/src/drawaction.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index 9dbcd656df6..36038901db9 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -1508,14 +1508,16 @@ void agroup_to_keylist(bActionGroup *agrp, ListBase *keys, ListBase *blocks, Act if (agrp) { /* loop through action channels */ for (achan= agrp->channels.first; achan && achan->grp==agrp; achan= achan->next) { - /* firstly, add keys from action channel's ipo block */ - if (achan->ipo) - ipo_to_keylist(achan->ipo, keys, blocks, aki); - - /* then, add keys from constraint channels */ - for (conchan= achan->constraintChannels.first; conchan; conchan= conchan->next) { - if (conchan->ipo) - ipo_to_keylist(conchan->ipo, keys, blocks, aki); + if(VISIBLE_ACHAN(achan)) { + /* firstly, add keys from action channel's ipo block */ + if (achan->ipo) + ipo_to_keylist(achan->ipo, keys, blocks, aki); + + /* then, add keys from constraint channels */ + for (conchan= achan->constraintChannels.first; conchan; conchan= conchan->next) { + if (conchan->ipo) + ipo_to_keylist(conchan->ipo, keys, blocks, aki); + } } } }