View3D: make ndof turntable & orbit speed match
authorCampbell Barton <ideasman42@gmail.com>
Thu, 22 Oct 2015 16:16:21 +0000 (03:16 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 22 Oct 2015 16:16:57 +0000 (03:16 +1100)
source/blender/editors/space_view3d/view3d_edit.c

index aa533626ffc35f70e2955c6f95d7afb9ead2e101..1fa865b585dbe2a94bbeccbb582013205a73fcbc 100644 (file)
@@ -1470,7 +1470,7 @@ static void view3d_ndof_orbit(const struct wmNDOFMotionData *ndof, ScrArea *sa,
 
                /* Perform the up/down rotation */
                angle = ndof->dt * rot[0];
-               axis_angle_to_quat(quat, xvec, angle * 2);
+               axis_angle_to_quat(quat, xvec, angle);
                mul_qt_qtqt(rv3d->viewquat, rv3d->viewquat, quat);
 
                /* Perform the orbital rotation */
@@ -1482,7 +1482,7 @@ static void view3d_ndof_orbit(const struct wmNDOFMotionData *ndof, ScrArea *sa,
                rv3d->rot_axis[1] = 0;
                rv3d->rot_axis[2] = 1;
 
-               axis_angle_to_quat_single(quat, 'Z', angle * 2);
+               axis_angle_to_quat_single(quat, 'Z', angle);
                mul_qt_qtqt(rv3d->viewquat, rv3d->viewquat, quat);
 
        }