diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-08-08 11:38:01 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-08-08 11:38:01 +0300 |
commit | 6689614e39b6ceab00fb0ef59ece74b1659facbf (patch) | |
tree | c3bfb94f72531298cea50d4033ee590ff0e06fb6 /source/blender/editors/space_view3d/view3d_walk.c | |
parent | 22bdd08dfd085e9d997dfa1b36ac296d2cf83a56 (diff) |
attempt to fix build error from rB22bdd08dfd08
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_walk.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_walk.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c index fb445198ccf..4c84398f8d9 100644 --- a/source/blender/editors/space_view3d/view3d_walk.c +++ b/source/blender/editors/space_view3d/view3d_walk.c @@ -264,6 +264,9 @@ typedef struct WalkInfo { } WalkInfo; /* prototypes */ +#ifdef WITH_INPUT_NDOF +static void walkApply_ndof(bContext *C, WalkInfo *walk, bool is_confirm) +#endif /* WITH_INPUT_NDOF */ static int walkApply(bContext *C, struct WalkInfo *walk, bool force_autokey); static float getVelocityZeroTime(const float gravity, const float velocity); @@ -1284,7 +1287,7 @@ static int walkApply(bContext *C, WalkInfo *walk, bool is_confirm) } #ifdef WITH_INPUT_NDOF -static void walkApply_ndof(bContext *C, WalkInfo *walk) +static void walkApply_ndof(bContext *C, WalkInfo *walk, bool is_confirm) { Object *lock_ob = ED_view3d_cameracontrol_object_get(walk->v3d_camera_control); bool has_translate, has_rotate; @@ -1301,7 +1304,7 @@ static void walkApply_ndof(bContext *C, WalkInfo *walk) walk->redraw = true; if (walk->rv3d->persp == RV3D_CAMOB) { - walkMoveCamera(C, walk, has_rotate, has_translate, true); + walkMoveCamera(C, walk, has_rotate, has_translate, is_confirm); } } } |