From 5ed2ed28ab308ed65290c3a36f0ff652cb710e94 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 5 Jun 2020 13:39:57 +0200 Subject: CodeCleanup: Supressed warning --- source/blender/editors/armature/armature_select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/armature') diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c index 4b8bbe39a16..8e03dbc7dc3 100644 --- a/source/blender/editors/armature/armature_select.c +++ b/source/blender/editors/armature/armature_select.c @@ -1205,8 +1205,8 @@ bool ED_armature_edit_select_op_from_tagged(bArmature *arm, const int sel_op) ebone->temp.i = ebone->flag; /* When there is a partial selection without both endpoints, only select an endpoint. */ - if ((is_inside_flag & BONESEL_BONE) && (is_inside_flag & (BONESEL_ROOT | BONESEL_TIP)) && - ((is_inside_flag & (BONESEL_ROOT | BONESEL_TIP)) != (BONESEL_ROOT | BONESEL_TIP))) { + if ((is_inside_flag & BONESEL_BONE) && + ELEM(is_inside_flag & (BONESEL_ROOT | BONESEL_TIP), BONESEL_ROOT, BONESEL_TIP)) { is_inside_flag &= ~BONESEL_BONE; } -- cgit v1.2.3