mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Fixed direction of rotate gizmo around y axis
This commit is contained in:
@@ -513,7 +513,7 @@ void GLGizmoRotate::transform_to_local() const
|
||||
}
|
||||
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);
|
||||
break;
|
||||
}
|
||||
@@ -543,7 +543,7 @@ Vec3d GLGizmoRotate::mouse_position_in_local_plane(const Linef3& mouse_ray) cons
|
||||
case Y:
|
||||
{
|
||||
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;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user