mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 23:05:52 +08:00
Fix rotation with object
This commit is contained in:
parent
f3f2dddcd1
commit
212544d532
@ -197,8 +197,7 @@ bool GLGizmoEmboss::on_mouse_for_rotation(const wxMouseEvent &mouse_event)
|
|||||||
start_angle = angle_opt.has_value() ? *angle_opt : 0.f;
|
start_angle = angle_opt.has_value() ? *angle_opt : 0.f;
|
||||||
}
|
}
|
||||||
// temporary rotation
|
// temporary rotation
|
||||||
TransformationType transformation_type(
|
TransformationType transformation_type(TransformationType::Local);
|
||||||
TransformationType::Local_Relative_Independent);
|
|
||||||
double angle = m_rotate_gizmo.get_angle();
|
double angle = m_rotate_gizmo.get_angle();
|
||||||
m_parent.get_selection().rotate(Vec3d(0., 0., angle), transformation_type);
|
m_parent.get_selection().rotate(Vec3d(0., 0., angle), transformation_type);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user