Cleanup: Remove old cruft (from 2.4)

This commit is contained in:
Joshua Leung
2018-04-23 14:49:44 +02:00
parent 6c46174662
commit 375f757a60
2 changed files with 5 additions and 6 deletions

View File

@@ -307,9 +307,6 @@ static void selectconnected_posebonechildren(Object *ob, Bone *bone, int extend)
if (!(bone->flag & BONE_CONNECTED) || (bone->flag & BONE_UNSELECTABLE))
return;
/* XXX old cruft! use notifiers instead */
//select_actionchannel_by_name (ob->action, bone->name, !(shift));
if (extend)
bone->flag &= ~BONE_SELECTED;
else
@@ -381,7 +378,7 @@ void POSE_OT_select_linked(wmOperatorType *ot)
ot->idname = "POSE_OT_select_linked";
ot->description = "Select bones related to selected ones by parent/child relationships";
/* api callbacks */
/* callbacks */
/* leave 'exec' unset */
ot->invoke = pose_select_connected_invoke;
ot->poll = pose_select_linked_poll;

View File

@@ -795,7 +795,8 @@ static int pose_clear_transform_generic_exec(bContext *C, wmOperator *op,
pchan->bone->flag |= BONE_UNKEYED;
}
}
} FOREACH_PCHAN_SELECTED_IN_OBJECT_END;
}
FOREACH_PCHAN_SELECTED_IN_OBJECT_END;
if (changed) {
changed_multi = true;
@@ -821,7 +822,8 @@ static int pose_clear_transform_generic_exec(bContext *C, wmOperator *op,
/* note, notifier might evolve */
WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, ob_iter);
}
} FOREACH_OBJECT_IN_MODE_END;
}
FOREACH_OBJECT_IN_MODE_END;
return changed_multi ? OPERATOR_FINISHED : OPERATOR_CANCELLED;
}