FIX:left up code is not run on paint gizmo

when middle and left press sequentially

jira: STUDIO-7220
Change-Id: I738bea5b9333e69a665b8ab7fdef6424cf35ead8
This commit is contained in:
zhou.xu 2024-06-03 10:24:20 +08:00 committed by Lane.Wei
parent 0e692f472d
commit 473a86435f
1 changed files with 2 additions and 2 deletions

View File

@ -1088,8 +1088,8 @@ bool GLGizmosManager::on_mouse(wxMouseEvent& evt)
}
else if (evt.LeftUp()
&& (m_current == SlaSupports || m_current == Hollow || m_current == FdmSupports || m_current == Seam || m_current == MmuSegmentation || m_current == Cut)
&& !m_parent.is_mouse_dragging()
&& gizmo_event(SLAGizmoEventType::LeftUp, mouse_pos, evt.ShiftDown(), evt.AltDown(), control_down)) {
&& gizmo_event(SLAGizmoEventType::LeftUp, mouse_pos, evt.ShiftDown(), evt.AltDown(), control_down)
&& !m_parent.is_mouse_dragging()) {
// in case SLA/FDM gizmo is selected, we just pass the LeftUp event and stop processing - neither
// object moving or selecting is suppressed in that case
processed = true;