diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-08-18 11:36:06 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-08-18 11:36:06 +0300 |
commit | 12c3002618e998051701f9db2fb92f947aa1cda5 (patch) | |
tree | 937fdc5dbe9e09ffc13172083991c9a3101af5b3 /source/blender/editors/interface/view2d_ops.c | |
parent | b10d0058d72da3051895481ae5830a7b668b7d80 (diff) |
Cleanup: ifdef function which is only used from ifdef-ed code
Diffstat (limited to 'source/blender/editors/interface/view2d_ops.c')
-rw-r--r-- | source/blender/editors/interface/view2d_ops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/view2d_ops.c b/source/blender/editors/interface/view2d_ops.c index f095ba9a03d..d2b2f12c1a5 100644 --- a/source/blender/editors/interface/view2d_ops.c +++ b/source/blender/editors/interface/view2d_ops.c @@ -127,6 +127,7 @@ static int view_pan_init(bContext *C, wmOperator *op) return 1; } +#ifdef WITH_INPUT_NDOF static int view_pan_poll(bContext *C) { ARegion *ar = CTX_wm_region(C); @@ -144,6 +145,7 @@ static int view_pan_poll(bContext *C) /* view can pan */ return 1; } +#endif /* apply transform to view (i.e. adjust 'cur' rect) */ static void view_pan_apply_ex(bContext *C, v2dViewPanData *vpd, float dx, float dy) |