diff options
author | Mike Erwin <significant.bit@gmail.com> | 2011-07-25 07:13:15 +0400 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2011-07-25 07:13:15 +0400 |
commit | 4b8233423bea092d5af4affe14290095dbd701ef (patch) | |
tree | 9334cefa096826743c90123a009a79480d128476 /source/blender/editors/space_view3d | |
parent | 876e0c2a8beb8111bb5c4c3d135fa44134c37d7d (diff) |
invert axes option affects trackball navigation
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index aabacadf3db..0aceb3bc1ca 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -1029,9 +1029,12 @@ static int ndof_orbit_invoke(bContext *C, wmOperator *op, wmEvent *event) float view_inv[4], view_inv_conj[4]; ndof_to_quat(ndof, rot); - // mul_qt_fl(rot, rot_sensitivity * (invert ? -1.f : 1.f)); + // mul_qt_fl(rot, rot_sensitivity); // ^^ no apparent effect + if (invert) + invert_qt(rot); + invert_qt_qt(view_inv, rv3d->viewquat); copy_qt_qt(view_inv_conj, view_inv); conjugate_qt(view_inv_conj); @@ -1040,10 +1043,6 @@ static int ndof_orbit_invoke(bContext *C, wmOperator *op, wmEvent *event) mul_qt_qtqt(rot, view_inv, rot); mul_qt_qtqt(rot, rot, view_inv_conj); - // if (invert) - // invert_qt(rot); - // ^^ argh!! this does something crazy - // apply rotation mul_qt_qtqt(rv3d->viewquat, rv3d->viewquat, rot); |