diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-03-17 16:02:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-03-17 16:02:48 +0300 |
commit | 2e95780d3ddfecef2ae225e6cb30a296ff54c522 (patch) | |
tree | e9986198f4af47249fa8ef4920490aa07eaee771 /source/blender/src/drawaction.c | |
parent | b04c58c81a54656ca8f990852affc973477bf2cf (diff) |
Bugfix: keyframes of hidden actions in action groups were still
drawing in the group row.
Diffstat (limited to 'source/blender/src/drawaction.c')
-rw-r--r-- | source/blender/src/drawaction.c | 18 |
1 files 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); + } } } } |