mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-29 13:01:49 -06:00
Improve brim paint gizmo shortcuts (#9174)
* Change section view hotkey to alt+mouse wheel * Use ctrl+mouse wheel up/down to change brim size * Update current brim brush size
This commit is contained in:
commit
5ed855aeef
3 changed files with 82 additions and 26 deletions
|
@ -882,13 +882,15 @@ bool GLGizmosManager::on_key(wxKeyEvent& evt)
|
|||
if (gizmo_event(SLAGizmoEventType::AltUp) || (is_editing && is_rectangle_dragging))
|
||||
processed = true;
|
||||
}
|
||||
|
||||
// BBS
|
||||
if (m_current == MmuSegmentation && keyCode > '0' && keyCode <= '9') {
|
||||
// capture number key
|
||||
processed = true;
|
||||
else if (keyCode == WXK_CONTROL) {
|
||||
gizmo_event(SLAGizmoEventType::CtrlUp);
|
||||
}
|
||||
}
|
||||
// BBS
|
||||
if (m_current == MmuSegmentation && keyCode > '0' && keyCode <= '9') {
|
||||
// capture number key
|
||||
processed = true;
|
||||
}
|
||||
if (m_current == Measure || m_current == Assembly) {
|
||||
if (keyCode == WXK_CONTROL)
|
||||
gizmo_event(SLAGizmoEventType::CtrlUp, Vec2d::Zero(), evt.ShiftDown(), evt.AltDown(), evt.CmdDown());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue