From 739ae1d80956759767e137fe17286dc360788a1b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 22 Feb 2014 16:19:02 +1100 Subject: NDOF: fix for view3d ignoring lens values when panning image, mce, view2d and view3d now have matching pan speed. --- source/blender/editors/space_view3d/view3d_fly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_view3d/view3d_fly.c') diff --git a/source/blender/editors/space_view3d/view3d_fly.c b/source/blender/editors/space_view3d/view3d_fly.c index 42e74be0460..c8c0111d5d4 100644 --- a/source/blender/editors/space_view3d/view3d_fly.c +++ b/source/blender/editors/space_view3d/view3d_fly.c @@ -460,7 +460,7 @@ static void flyEvent(bContext *C, FlyInfo *fly, const wmEvent *event) // puts("ndof motion detected in fly mode!"); // static const char *tag_name = "3D mouse position"; - wmNDOFMotionData *incoming_ndof = (wmNDOFMotionData *)event->customdata; + const wmNDOFMotionData *incoming_ndof = event->customdata; switch (incoming_ndof->progress) { case P_STARTING: /* start keeping track of 3D mouse position */ -- cgit v1.2.3