Gizmos shortcuts set as default

This commit is contained in:
Enrico Turri 2018-12-04 16:01:25 +01:00
parent 04d7154d40
commit 9bfcf10cc6
5 changed files with 0 additions and 28 deletions

View file

@ -2738,7 +2738,6 @@ bool GLCanvas3D::Gizmos::is_running() const
return (curr != nullptr) ? (curr->get_state() == GLGizmoBase::On) : false;
}
#if ENABLE_GIZMOS_SHORTCUT
bool GLCanvas3D::Gizmos::handle_shortcut(int key, const Selection& selection)
{
if (!m_enabled)
@ -2773,7 +2772,6 @@ bool GLCanvas3D::Gizmos::handle_shortcut(int key, const Selection& selection)
return handled;
}
#endif // ENABLE_GIZMOS_SHORTCUT
bool GLCanvas3D::Gizmos::is_dragging() const
{
@ -4487,14 +4485,12 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
#endif // ENABLE_MODIFIED_CAMERA_TARGET
default:
{
#if ENABLE_GIZMOS_SHORTCUT
if (m_gizmos.handle_shortcut(keyCode, m_selection))
{
_update_gizmos_data();
m_dirty = true;
}
else
#endif // ENABLE_GIZMOS_SHORTCUT
evt.Skip();
break;