mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-19 08:27:36 +08:00
Changed starting orientation of rotate gizmo grabbers
This commit is contained in:
parent
b4216fbda9
commit
ec2d9d6d08
@ -642,13 +642,13 @@ void GLGizmoRotate::transform_to_local() const
|
|||||||
case X:
|
case X:
|
||||||
{
|
{
|
||||||
::glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
::glRotatef(90.0f, 0.0f, 1.0f, 0.0f);
|
||||||
::glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
|
::glRotatef(-90.0f, 0.0f, 0.0f, 1.0f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Y:
|
case Y:
|
||||||
{
|
{
|
||||||
::glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
|
::glRotatef(-90.0f, 0.0f, 0.0f, 1.0f);
|
||||||
::glRotatef(90.0f, 0.0f, 0.0f, 1.0f);
|
::glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
@ -670,14 +670,14 @@ Vec3d GLGizmoRotate::mouse_position_in_local_plane(const Linef3& mouse_ray) cons
|
|||||||
{
|
{
|
||||||
case X:
|
case X:
|
||||||
{
|
{
|
||||||
m.rotate(Eigen::AngleAxisd(-half_pi, Vec3d::UnitZ()));
|
m.rotate(Eigen::AngleAxisd(half_pi, Vec3d::UnitZ()));
|
||||||
m.rotate(Eigen::AngleAxisd(-half_pi, Vec3d::UnitY()));
|
m.rotate(Eigen::AngleAxisd(-half_pi, Vec3d::UnitY()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case Y:
|
case Y:
|
||||||
{
|
{
|
||||||
m.rotate(Eigen::AngleAxisd(-half_pi, Vec3d::UnitZ()));
|
m.rotate(Eigen::AngleAxisd(half_pi, Vec3d::UnitY()));
|
||||||
m.rotate(Eigen::AngleAxisd(half_pi, Vec3d::UnitX()));
|
m.rotate(Eigen::AngleAxisd(half_pi, Vec3d::UnitZ()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user