Correct editbone root-select check

Mistake in recent commit.
This commit is contained in:
Campbell Barton 2018-11-21 12:57:08 +11:00
parent 63150511a2
commit ac5889a9ee
1 changed files with 5 additions and 1 deletions

View File

@ -992,7 +992,11 @@ int getTransformOrientation_ex(const bContext *C, float normal[3], float plane[3
add_v3_v3(plane, tmat[1]);
ok = true;
}
else if ((ok == false) && (ebone->flag & (BONE_ROOTSEL | BONE_TIPSEL))) {
else if ((ok == false) &&
((ebone->flag & BONE_TIPSEL) ||
((ebone->flag & BONE_ROOTSEL) &&
(ebone->parent && ebone->flag & BONE_CONNECTED) == false)))
{
ED_armature_ebone_to_mat3(ebone, tmat);
add_v3_v3(fallback_normal, tmat[2]);
add_v3_v3(fallback_plane, tmat[1]);