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
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2011-07-26 20:17:00 +0400
committerMike Erwin <significant.bit@gmail.com>2011-07-26 20:17:00 +0400
commit37aa6a5e3d5d5fdd8e9ec0779cdfa831a084b01f (patch)
tree9e24095487a148f068fbe1402230d787797aabc1 /source/blender/editors/space_view3d/view3d_edit.c
parent72f70874bb3477a0861735d612e0c15c931ff7e5 (diff)
onscreen ndof rotation guide (center + axis)
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_edit.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 75e20ad565e..999120a0987 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -1053,13 +1053,13 @@ static int ndof_orbit_invoke(bContext *C, wmOperator *op, wmEvent *event)
if (invert)
angle = -angle;
+ // transform rotation axis from view to world coordinates
+ mul_qt_v3(view_inv, axis);
+
// update the onscreen doo-dad
rv3d->rot_angle = angle;
copy_v3_v3(rv3d->rot_axis, axis);
- // transform rotation axis from view to world coordinates
- mul_qt_v3(view_inv, axis);
-
axis_angle_to_quat(rot, axis, angle);
#endif // --------------------------------------------
// apply rotation