Fix rotation with object

This commit is contained in:
Filip Sykala 2022-02-22 13:32:01 +01:00
parent f3f2dddcd1
commit 212544d532

View file

@ -197,8 +197,7 @@ bool GLGizmoEmboss::on_mouse_for_rotation(const wxMouseEvent &mouse_event)
start_angle = angle_opt.has_value() ? *angle_opt : 0.f;
}
// temporary rotation
TransformationType transformation_type(
TransformationType::Local_Relative_Independent);
TransformationType transformation_type(TransformationType::Local);
double angle = m_rotate_gizmo.get_angle();
m_parent.get_selection().rotate(Vec3d(0., 0., angle), transformation_type);