[Bf-blender-cvs] [fe0ca82b] master: Fix T47263: numpad4/6 rotates around worl Z axis and not view Y axis.
Bastien Montagne
noreply at git.blender.org
Sat Jan 30 19:09:30 CET 2016
Commit: fe0ca82b232dcab29030c4a20b8bd1b033d1d346
Author: Bastien Montagne
Date: Sat Jan 30 19:07:36 2016 +0100
Branches: master
https://developer.blender.org/rBfe0ca82b232dcab29030c4a20b8bd1b033d1d346
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.
===================================================================
M source/blender/editors/space_view3d/view3d_edit.c
===================================================================
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 0f40765..15fc4ca 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);
}
More information about the Bf-blender-cvs
mailing list