From fe0ca82b232dcab29030c4a20b8bd1b033d1d346 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sat, 30 Jan 2016 19:07:36 +0100 Subject: [PATCH] Fix T47263: numpad4/6 rotates around worl Z axis and not view Y axis. Those two were the only one rotating around some world axis (turntable mode), so better make their behavior consistent with other rotating numpad keys. This breaks the turntable-rotation with numpad keys, though. --- source/blender/editors/space_view3d/view3d_edit.c | 6 +++--- 1 file 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 0f407658228..15fc4ca984a 100644 --- a/source/blender/editors/space_view3d/view3d_edit.c +++ b/source/blender/editors/space_view3d/view3d_edit.c @@ -4005,8 +4005,8 @@ static int vieworbit_exec(bContext *C, wmOperator *op) angle = -angle; } - /* z-axis */ - axis_angle_to_quat_single(quat_mul, 'Z', angle); + /* View Y-axis */ + axis_angle_to_quat(quat_mul, rv3d->viewinv[1], angle); } else { @@ -4014,7 +4014,7 @@ static int vieworbit_exec(bContext *C, wmOperator *op) angle = -angle; } - /* horizontal axis */ + /* View X-axis */ axis_angle_to_quat(quat_mul, rv3d->viewinv[0], angle); }