code cleanup: remove unused operator (select all handles this case now)
authorCampbell Barton <ideasman42@gmail.com>
Mon, 4 Nov 2013 00:55:00 +0000 (00:55 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 4 Nov 2013 00:55:00 +0000 (00:55 +0000)
source/blender/editors/armature/armature_intern.h
source/blender/editors/armature/armature_ops.c
source/blender/editors/armature/armature_select.c

index 0f1597cc6f31c41eef540647198917af41a1eaed..3080ab3353899e14b363a8a3b709ed361239e896 100644 (file)
@@ -62,7 +62,6 @@ void ARMATURE_OT_parent_set(struct wmOperatorType *ot);
 void ARMATURE_OT_parent_clear(struct wmOperatorType *ot);
 
 void ARMATURE_OT_select_all(struct wmOperatorType *ot);
-void ARMATURE_OT_select_inverse(struct wmOperatorType *ot);
 void ARMATURE_OT_select_more(struct wmOperatorType *ot);
 void ARMATURE_OT_select_less(struct wmOperatorType *ot);
 void ARMATURE_OT_select_hierarchy(struct wmOperatorType *ot);
index 496da81261086e95b9d63def1983d2d6f659e720..3322b115da9f73d4ebfc9166fb9d4fba98378dfc 100644 (file)
@@ -58,7 +58,6 @@ void ED_operatortypes_armature(void)
        WM_operatortype_append(ARMATURE_OT_parent_clear);
        
        WM_operatortype_append(ARMATURE_OT_select_all);
-       WM_operatortype_append(ARMATURE_OT_select_inverse);
        WM_operatortype_append(ARMATURE_OT_select_more);
        WM_operatortype_append(ARMATURE_OT_select_less);
        WM_operatortype_append(ARMATURE_OT_select_hierarchy);
index fe1d2fa3765d8111d2f4b551d2ba81f9d8df0972..69a42b84624929483bb957b11ed013854d7017fc 100644 (file)
@@ -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");