Bugfix for IK locked axes with an initial rotation, gave wrong
[blender-staging.git] / source / blender / src / editarmature.c
index 9dcb190509f8faf69803a72f0387f8dbdbeca6bf..66ee7a83f3a83c4b804039cbfca713baf108b001 100644 (file)
@@ -2947,7 +2947,7 @@ static int hide_selected_pose_bone(Object *ob, Bone *bone, void *ptr)
        if(arm->layer & bone->layer) {
                if (bone->flag & BONE_SELECTED) {
                        bone->flag |= BONE_HIDDEN_P;
-                       bone->flag &= ~BONE_SELECTED;
+                       bone->flag &= ~(BONE_SELECTED|BONE_ACTIVE);
                }
        }
        return 0;
@@ -2977,6 +2977,7 @@ static int hide_unselected_pose_bone(Object *ob, Bone *bone, void *ptr)
        if(arm->layer & bone->layer) {
                if (~bone->flag & BONE_SELECTED) {
                        bone->flag |= BONE_HIDDEN_P;
+                       bone->flag &= ~BONE_ACTIVE;
                }
        }
        return 0;