diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-05-28 08:50:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-05-28 08:50:30 +0400 |
commit | 2d85ed24a385ea2a59224e9aac61481da30045fd (patch) | |
tree | 1585e6ead0ccf1454e6dae7c7c7693d52498a053 /source/blender/src/editarmature.c | |
parent | 91ea74c3391f1ac22aec7878e135c9a00d3a2538 (diff) |
Made it that hidden bones should arnt selected armature and posemode
Diffstat (limited to 'source/blender/src/editarmature.c')
-rw-r--r-- | source/blender/src/editarmature.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index 4db106478ce..c7b818482bd 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -1234,15 +1234,15 @@ void deselectall_armature(int toggle, int doundo) sel=0; break; } - } -// } +// } + } } else sel= toggle; /* Set the flags */ for (eBone=G.edbo.first;eBone;eBone=eBone->next){ if (sel==1) { - if(arm->layer & eBone->layer) { + if(arm->layer & eBone->layer && (eBone->flag & BONE_HIDDEN_A)==0) { eBone->flag |= (BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL); if(eBone->parent) eBone->parent->flag |= (BONE_TIPSEL); @@ -2223,7 +2223,7 @@ void deselectall_posearmature (Object *ob, int test, int doundo) /* Determine if we're selecting or deselecting */ if (test==1) { for(pchan= ob->pose->chanbase.first; pchan; pchan= pchan->next) - if(pchan->bone->layer & arm->layer) + if(pchan->bone->layer & arm->layer && !(pchan->bone->flag & BONE_HIDDEN_P)) if(pchan->bone->flag & BONE_SELECTED) break; @@ -2235,7 +2235,7 @@ void deselectall_posearmature (Object *ob, int test, int doundo) /* Set the flags accordingly */ for(pchan= ob->pose->chanbase.first; pchan; pchan= pchan->next) { - if(pchan->bone->layer & arm->layer) { + if(pchan->bone->layer & arm->layer && !(pchan->bone->flag & BONE_HIDDEN_P)) { if(selectmode==0) pchan->bone->flag &= ~(BONE_SELECTED|BONE_TIPSEL|BONE_ROOTSEL|BONE_ACTIVE); else if(selectmode==1) pchan->bone->flag |= BONE_SELECTED; else pchan->bone->flag &= ~BONE_ACTIVE; |