diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-01-11 11:42:48 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-01-11 11:43:40 +0300 |
commit | 80865bd583c28fcad9cc6ef8dc7185aaccf0ed50 (patch) | |
tree | c0342167a1b01fedb4dc3f47ae7609756f007dd6 /source/blender/editors/space_view3d | |
parent | 9533eb49083e0290097d078d41e5db542559c5b0 (diff) |
Fix building with INPUT_NDOF after warning cleanup
Reported by Clément Foucault
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 0765b536d46..21a7e26998e 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -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); |