Replace abf918e728
with a better fix
This commit is contained in:
parent
e4ee0d927d
commit
bb8a001963
2 changed files with 5 additions and 11 deletions
|
@ -300,7 +300,8 @@ bool GLGizmoEmboss::on_mouse_for_rotation(const wxMouseEvent &mouse_event)
|
|||
angle -= PI / 2; // Grabber is upward
|
||||
|
||||
// temporary rotation
|
||||
TransformationType transformation_type = TransformationType::Local_Relative_Joint;
|
||||
const TransformationType transformation_type = m_parent.get_selection().is_single_text() ?
|
||||
TransformationType::Local_Relative_Joint : TransformationType::World_Relative_Joint;
|
||||
m_parent.get_selection().rotate(Vec3d(0., 0., angle), transformation_type);
|
||||
|
||||
angle += *m_rotate_start_angle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue