diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-25 21:42:15 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-25 21:42:15 +0400 |
commit | 32e4e0f8737d3441e621b7da4640a6041fa69c01 (patch) | |
tree | 64ae8084a76cc61225cc07ecb55934cc55e41a8e /source/blender/editors/space_view3d/view3d_edit.c | |
parent | d5fdec6619becffac9c903aba335dd6f47b2c103 (diff) |
add conjugate_qt_qt(), also some code cleanup and use const for 'rotOrders' var in math_rotation.c
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_edit.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_edit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c index db47f88c8f2..e74bda87a43 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -662,8 +662,7 @@ static void viewrotate_apply(ViewOpsData *vod, int x, int y) if (vod->use_dyn_ofs) { /* compute the post multiplication quat, to rotate the offset correctly */ - copy_qt_qt(q1, vod->oldquat); - conjugate_qt(q1); + conjugate_qt_qt(q1, vod->oldquat); mul_qt_qtqt(q1, q1, vod->viewquat); conjugate_qt(q1); /* conj == inv for unit quat */ |