From 6e6ab640f44e3a80bd5f3ac94f9bf60f7142a454 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 19 Jul 2022 12:13:07 +0200 Subject: [PATCH] Fixed missing update of object position when dragging it on the plate while Place on Face gizmo is open --- src/slic3r/GUI/Gizmos/GLGizmoFlatten.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoFlatten.cpp b/src/slic3r/GUI/Gizmos/GLGizmoFlatten.cpp index f854edb81..caa6ef0f5 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoFlatten.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoFlatten.cpp @@ -52,9 +52,14 @@ bool GLGizmoFlatten::on_mouse(const wxMouseEvent &mouse_event) } else if (mouse_event.LeftUp()) { if (m_mouse_left_down) { - // responsible for mouse left up after selecting plane - m_mouse_left_down = false; - return true; + if (m_hover_id == -1) + // no plane hovered + return false; + else { + // responsible for mouse left up after selecting plane + m_mouse_left_down = false; + return true; + } } } else if (mouse_event.Leaving()) { m_mouse_left_down = false;