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.
This commit is contained in:
Bastien Montagne 2016-01-30 19:07:36 +01:00
parent eed9c6fdcf
commit fe0ca82b23
Notes: blender-bot 2023-02-14 08:17:05 +01:00
Referenced by commit 7219988258, Revert "Fix T47263: numpad4/6 rotates around worl Z axis and not view Y axis."
Referenced by issue #47263, problem with turntable orbit
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}