Cleanup: remove unused viewnumpad code

This commit is contained in:
Campbell Barton 2015-03-13 03:40:58 +11:00
parent a8f6d51ebc
commit f8de442a35
1 changed files with 0 additions and 20 deletions

View File

@ -3703,22 +3703,6 @@ static void axis_set_view(bContext *C, View3D *v3d, ARegion *ar,
}
if (align_active == false) {
/* normal operation */
if (rv3d->viewlock & RV3D_LOCKED) {
/* only pass on if */
/* nice confusing if-block */
if (!((rv3d->view == RV3D_VIEW_FRONT && view == RV3D_VIEW_BACK) ||
(rv3d->view == RV3D_VIEW_BACK && view == RV3D_VIEW_FRONT) ||
(rv3d->view == RV3D_VIEW_RIGHT && view == RV3D_VIEW_LEFT) ||
(rv3d->view == RV3D_VIEW_LEFT && view == RV3D_VIEW_RIGHT) ||
(rv3d->view == RV3D_VIEW_BOTTOM && view == RV3D_VIEW_TOP) ||
(rv3d->view == RV3D_VIEW_TOP && view == RV3D_VIEW_BOTTOM)))
{
return;
}
}
rv3d->view = view;
}
@ -3765,10 +3749,6 @@ static int viewnumpad_exec(bContext *C, wmOperator *op)
viewnum = RNA_enum_get(op->ptr, "type");
align_active = RNA_boolean_get(op->ptr, "align_active");
/* set this to zero, gets handled in axis_set_view */
if (rv3d->viewlock & RV3D_LOCKED)
align_active = false;
/* Use this to test if we started out with a camera */
if (rv3d->persp == RV3D_CAMOB) {