From 473a86435f0934d4a7d7a194748a19e661de2d8e Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Mon, 3 Jun 2024 10:24:20 +0800 Subject: [PATCH] FIX:left up code is not run on paint gizmo when middle and left press sequentially jira: STUDIO-7220 Change-Id: I738bea5b9333e69a665b8ab7fdef6424cf35ead8 --- src/slic3r/GUI/Gizmos/GLGizmosManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp index 271927efe..d76ad1f53 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp @@ -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;