Fix: Manipulator visible if root or tip of locked bone is selected

When an edit-bone was locked, we hid the transform manipulator for it.
But only if the bone itself was selected, not when the root or tip were
selected, even though they are locked then too. So this makes sure the
manipulator is shown in neither case.
This commit is contained in:
Julian Eisel 2019-10-10 15:06:11 +02:00
parent e15ab630c6
commit 7c88d84515
1 changed files with 1 additions and 1 deletions

View File

@ -888,7 +888,7 @@ int ED_transform_calc_gizmo_stats(const bContext *C,
calc_tw_center_with_matrix(tbounds, ebo->head, use_mat_local, mat_local);
totsel++;
}
if (ebo->flag & BONE_SELECTED) {
if (ebo->flag & (BONE_SELECTED | BONE_ROOTSEL | BONE_TIPSEL)) {
protectflag_to_drawflags_ebone(rv3d, ebo);
}
}