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:
|
||||
{
|
||||
::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:
|
||||
|
|
Loading…
Reference in a new issue