diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-04 04:55:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-04 04:55:00 +0400 |
commit | 65633d7be25b81dc6837098909e1662dc03939e2 (patch) | |
tree | 9b62bb10cf5c43c6b8422775aa9b1a2959f5550b /source/blender/editors/armature/armature_select.c | |
parent | c366f08b6f681ce84b75f402505873a313a80ca7 (diff) |
code cleanup: remove unused operator (select all handles this case now)
Diffstat (limited to 'source/blender/editors/armature/armature_select.c')
-rw-r--r-- | source/blender/editors/armature/armature_select.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c index fe1d2fa3765..69a42b84624 100644 --- a/source/blender/editors/armature/armature_select.c +++ b/source/blender/editors/armature/armature_select.c @@ -559,39 +559,6 @@ bool mouse_armature(bContext *C, const int mval[2], bool extend, bool deselect, /* **************** Selections ******************/ -static int armature_select_inverse_exec(bContext *C, wmOperator *UNUSED(op)) -{ - /* Set the flags */ - CTX_DATA_BEGIN(C, EditBone *, ebone, visible_bones) - { - /* ignore bone if selection can't change */ - if ((ebone->flag & BONE_UNSELECTABLE) == 0) { - /* select bone */ - ebone->flag ^= (BONE_SELECTED | BONE_TIPSEL | BONE_ROOTSEL); - } - } - CTX_DATA_END; - - WM_event_add_notifier(C, NC_OBJECT | ND_BONE_SELECT, NULL); - - return OPERATOR_FINISHED; -} - -void ARMATURE_OT_select_inverse(wmOperatorType *ot) -{ - /* identifiers */ - ot->name = "Select Inverse"; - ot->idname = "ARMATURE_OT_select_inverse"; - ot->description = "Flip the selection status of bones (selected -> unselected, unselected -> selected)"; - - /* api callbacks */ - ot->exec = armature_select_inverse_exec; - ot->poll = ED_operator_editarmature; - - /* flags */ - ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; - -} static int armature_de_select_all_exec(bContext *C, wmOperator *op) { int action = RNA_enum_get(op->ptr, "action"); |