forked from bartvdbraak/blender
== Action Editor ==
Hiding bones in the 3d-view with the (HKEY) now hides the corresponding Action Channels too.
This commit is contained in:
parent
c80b2ef9b1
commit
d72d8ed82a
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2529,6 +2529,7 @@ void hide_selected_pose_bones(void)
|
||||
|
||||
allqueue(REDRAWVIEW3D, 0);
|
||||
allqueue(REDRAWBUTSEDIT, 0);
|
||||
allqueue(REDRAWACTION, 0);
|
||||
BIF_undo_push("Hide Bones");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user