diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-05-17 04:23:24 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-05-17 04:23:24 +0400 |
commit | d72d8ed82a6d4561b00f1c722a1169dacc46b0a5 (patch) | |
tree | 016aa304847b24f55b77bec873058fc0f495afe0 /source/blender | |
parent | c80b2ef9b1a47eb7aadb37369b15931941c00e77 (diff) |
== Action Editor ==
Hiding bones in the 3d-view with the (HKEY) now hides the corresponding Action Channels too.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/src/drawaction.c | 7 | ||||
-rw-r--r-- | source/blender/src/editarmature.c | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c index 9ae34d59226..52d9f59ae88 100644 --- a/source/blender/src/drawaction.c +++ b/source/blender/src/drawaction.c @@ -658,9 +658,12 @@ void check_action_context(SpaceAction *saction) for (achan=saction->action->chanbase.first; achan; achan=achan->next) { pchan= get_pose_channel(ob->pose, achan->name); - if(pchan) - if((pchan->bone->layer & arm->layer)==0) + if (pchan) { + if ((pchan->bone->layer & arm->layer)==0) achan->flag |= ACHAN_HIDDEN; + else if (pchan->bone->flag & BONE_HIDDEN_P) + achan->flag |= ACHAN_HIDDEN; + } } } } diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index 36240714a6a..477e8d339ec 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -2529,6 +2529,7 @@ void hide_selected_pose_bones(void) allqueue(REDRAWVIEW3D, 0); allqueue(REDRAWBUTSEDIT, 0); + allqueue(REDRAWACTION, 0); BIF_undo_push("Hide Bones"); } |