Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-10-22 19:16:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-10-22 19:16:57 +0300
commit54a18f6d51db40d0bca7be1f92c8b11f4ff881e4 (patch)
treefaecca55685df9ce538488fd88b780292e4e2e95 /source
parent80470b639c1c5091541c56ae80212fa8e5148913 (diff)
View3D: make ndof turntable & orbit speed match
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index aa533626ffc..1fa865b585d 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -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);
}