From ea15475ad87db66bfde5fc2a65a2b831773d4518 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 7 Sep 2018 12:00:04 +0200 Subject: [PATCH] Fixed double click on gizmo overlay and toolbar --- xs/src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/slic3r/GUI/GLCanvas3D.cpp b/xs/src/slic3r/GUI/GLCanvas3D.cpp index 56bfb8f373..edc5bc78ec 100644 --- a/xs/src/slic3r/GUI/GLCanvas3D.cpp +++ b/xs/src/slic3r/GUI/GLCanvas3D.cpp @@ -2978,7 +2978,7 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt) m_mouse.position = Vec2d(-1.0, -1.0); m_dirty = true; } - else if (evt.LeftDClick() && (m_hover_volume_id != -1)) + else if (evt.LeftDClick() && (m_hover_volume_id != -1) && !gizmos_overlay_contains_mouse && (toolbar_contains_mouse == -1)) m_on_double_click_callback.call(); else if (evt.LeftDClick() && (toolbar_contains_mouse != -1)) {