mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-06 03:52:58 +00:00
Gizmo rotate operates always in world reference system
This commit is contained in:
@@ -199,7 +199,9 @@ protected:
|
||||
virtual void on_start_dragging(const GLCanvas3D::Selection& selection);
|
||||
virtual void on_update(const UpdateData& data);
|
||||
#if ENABLE_GIZMOS_RESET
|
||||
#if !ENABLE_WORLD_ROTATIONS
|
||||
virtual void on_process_double_click() { m_angle = 0.0; }
|
||||
#endif // !ENABLE_WORLD_ROTATIONS
|
||||
#endif // ENABLE_GIZMOS_RESET
|
||||
virtual void on_render(const GLCanvas3D::Selection& selection) const;
|
||||
virtual void on_render_for_picking(const GLCanvas3D::Selection& selection) const;
|
||||
@@ -265,11 +267,13 @@ protected:
|
||||
}
|
||||
}
|
||||
#if ENABLE_GIZMOS_RESET
|
||||
#if !ENABLE_WORLD_ROTATIONS
|
||||
virtual void on_process_double_click()
|
||||
{
|
||||
if (m_hover_id != -1)
|
||||
m_gizmos[m_hover_id].process_double_click();
|
||||
}
|
||||
#endif // !ENABLE_WORLD_ROTATIONS
|
||||
#endif // ENABLE_GIZMOS_RESET
|
||||
virtual void on_render(const GLCanvas3D::Selection& selection) const;
|
||||
virtual void on_render_for_picking(const GLCanvas3D::Selection& selection) const
|
||||
|
||||
Reference in New Issue
Block a user