Fix #115657 : Bone's tail is still selected after invert selection #115663

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:115657 into main 2023-12-05 14:08:18 +01:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit dc271fb19f - Show all commits

View File

@ -1350,7 +1350,7 @@ static int armature_de_select_all_exec(bContext *C, wmOperator *op)
case SEL_SELECT:
if ((ebone->flag & BONE_UNSELECTABLE) == 0) {
ebone->flag |= (BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL);
if (ebone->parent) {
if (ebone->parent && (ebone->flag & BONE_CONNECTED)) {
ebone->parent->flag |= BONE_TIPSEL;
}
}
@ -1365,7 +1365,7 @@ static int armature_de_select_all_exec(bContext *C, wmOperator *op)
else {
if ((ebone->flag & BONE_UNSELECTABLE) == 0) {
ebone->flag |= (BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL);
if (ebone->parent) {
if (ebone->parent && (ebone->flag & BONE_CONNECTED)) {
ebone->parent->flag |= BONE_TIPSEL;
}
}