Fix building with INPUT_NDOF after warning cleanup

Reported by Clément Foucault
This commit is contained in:
Dalai Felinto
2017-01-11 09:42:48 +01:00
parent 9533eb4908
commit 80865bd583

View File

@@ -2003,6 +2003,8 @@ static void view3d_draw_other_elements(const bContext *C, ARegion *ar)
view3d_draw_grid(C, ar);
#ifdef WITH_INPUT_NDOF
RegionView3D *rv3d = ar->regiondata;
if ((U.ndof_flag & NDOF_SHOW_GUIDE) && ((rv3d->viewlock & RV3D_LOCKED) == 0) && (rv3d->persp != RV3D_CAMOB))
/* TODO: draw something else (but not this) during fly mode */
draw_rotation_guide(rv3d);