Fixed shortcut for [M]ove gizmo (accidentally overridden by a shortcut for [M]anual changes of SLA support points)

This commit is contained in:
Lukas Matena 2019-02-27 10:12:54 +01:00
parent 3a1923e4f1
commit bb533e386a

View file

@ -4673,16 +4673,17 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
case 'b': { zoom_to_bed(); break; } case 'b': { zoom_to_bed(); break; }
case 'I': case 'I':
case 'i': { set_camera_zoom(1.0f); break; } case 'i': { set_camera_zoom(1.0f); break; }
case 'M':
case 'm': {
if (m_gizmos.get_current_type() == Gizmos::SlaSupports && m_gizmos.mouse_event(SLAGizmoEventType::ManualEditing))
m_dirty = true;
break;
}
case 'O': case 'O':
case 'o': { set_camera_zoom(-1.0f); break; } case 'o': { set_camera_zoom(-1.0f); break; }
case 'Z': case 'Z':
case 'z': { m_selection.is_empty() ? zoom_to_volumes() : zoom_to_selection(); break; } case 'z': { m_selection.is_empty() ? zoom_to_volumes() : zoom_to_selection(); break; }
case 'M':
case 'm': {
if (m_gizmos.get_current_type() == Gizmos::SlaSupports && m_gizmos.mouse_event(SLAGizmoEventType::ManualEditing)) {
m_dirty = true;
break;
}
} // intentional fallthrough
default: default:
{ {
if (m_gizmos.handle_shortcut(keyCode, m_selection)) if (m_gizmos.handle_shortcut(keyCode, m_selection))