Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-12-21 22:58:44 +0300
committerTon Roosendaal <ton@blender.org>2005-12-21 22:58:44 +0300
commitdabd52f89dd6e712468dd84476412a22530f3d09 (patch)
tree8e3fd29ed55ce375c7a05aa545f466b3d0b3fcf7 /source/blender/src/drawaction.c
parent63c8678263af7fb5b81fbe50fc9280a7682ed3ca (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.c6
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;