diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-31 14:37:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-31 14:37:25 +0300 |
commit | 39684e455459e37057006a1082a4d2a95f13be06 (patch) | |
tree | 87e226233e1e36c072836f1f6b134725061e299d /source/blender | |
parent | 17a409e223a7b72fbfa89c97728017e5afcb54a5 (diff) |
Cleanup: remove duplicate function
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/armature/armature_select.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c index 99dcd5bb42b..86396dd6783 100644 --- a/source/blender/editors/armature/armature_select.c +++ b/source/blender/editors/armature/armature_select.c @@ -816,18 +816,6 @@ bool ED_armature_edit_deselect_all_visible_multi(bContext *C) /** \name Cursor Picking API * \{ */ -/* accounts for connected parents */ -static int ebone_select_flag(EditBone *ebone) -{ - if (ebone->parent && (ebone->flag & BONE_CONNECTED)) { - return ((ebone->parent->flag & BONE_TIPSEL) ? BONE_ROOTSEL : 0) | - (ebone->flag & (BONE_SELECTED | BONE_TIPSEL)); - } - else { - return ebone->flag & (BONE_SELECTED | BONE_ROOTSEL | BONE_TIPSEL); - } -} - /* context: editmode armature in view3d */ bool ED_armature_edit_select_pick( bContext *C, const int mval[2], bool extend, bool deselect, bool toggle) @@ -939,7 +927,7 @@ bool ED_armature_edit_select_pick( ED_armature_edit_sync_selection(arm->edbo); /* then now check for active status */ - if (ebone_select_flag(nearBone)) { + if (ED_armature_ebone_selectflag_get(nearBone)) { arm->act_edbone = nearBone; } |