mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 10:47:50 -06:00
Fixed direction of rotate gizmo around y axis
This commit is contained in:
parent
acdbd987f5
commit
95ae2d715b
1 changed files with 2 additions and 2 deletions
|
@ -513,7 +513,7 @@ void GLGizmoRotate::transform_to_local() const
|
||||||
}
|
}
|
||||||
case Y:
|
case Y:
|
||||||
{
|
{
|
||||||
::glRotatef(90.0f, 1.0f, 0.0f, 0.0f);
|
::glRotatef(-90.0f, 1.0f, 0.0f, 0.0f);
|
||||||
::glRotatef(180.0f, 0.0f, 0.0f, 1.0f);
|
::glRotatef(180.0f, 0.0f, 0.0f, 1.0f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -543,7 +543,7 @@ Vec3d GLGizmoRotate::mouse_position_in_local_plane(const Linef3& mouse_ray) cons
|
||||||
case Y:
|
case Y:
|
||||||
{
|
{
|
||||||
m.rotate(Eigen::AngleAxisd(-(double)PI, Vec3d::UnitZ()));
|
m.rotate(Eigen::AngleAxisd(-(double)PI, Vec3d::UnitZ()));
|
||||||
m.rotate(Eigen::AngleAxisd(-half_pi, Vec3d::UnitX()));
|
m.rotate(Eigen::AngleAxisd(half_pi, Vec3d::UnitX()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue