diff options
author | Ton Roosendaal <ton@blender.org> | 2005-12-21 22:58:44 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-12-21 22:58:44 +0300 |
commit | dabd52f89dd6e712468dd84476412a22530f3d09 (patch) | |
tree | 8e3fd29ed55ce375c7a05aa545f466b3d0b3fcf7 /source/blender/src/drawaction.c | |
parent | 63c8678263af7fb5b81fbe50fc9280a7682ed3ca (diff) |
Orange: some better support for new bone layers: action window now draws
nicer... it was still counting all bones for defining visible area, so
many times channels got displayed out of view.
Diffstat (limited to 'source/blender/src/drawaction.c')
-rw-r--r-- | source/blender/src/drawaction.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index 4b1355ada11..2882b397164 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -349,8 +349,10 @@ int count_action_levels(bAction *act) return 0; for (achan=act->chanbase.first; achan; achan=achan->next){ - y+=1; - y+=BLI_countlist(&achan->constraintChannels); + if((achan->flag & ACHAN_HIDDEN)==0) { + y+=1; + y+=BLI_countlist(&achan->constraintChannels); + } } return y; |