From 9f734a073f3e4dc8954b35a5ea50f69997b3a673 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Fri, 25 Jan 2019 14:55:20 +0100 Subject: [PATCH] Disable active gizmo as soon as the selection is cleared by clicking on the scene out of any object --- src/slic3r/GUI/GLCanvas3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index a97c98135..ee8a7ebbd 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -5379,8 +5379,9 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt) m_selection.clear(); m_selection.set_mode(Selection::Instance); wxGetApp().obj_manipul()->update_settings_value(m_selection); - post_event(SimpleEvent(EVT_GLCANVAS_OBJECT_SELECT)); + m_gizmos.reset_all_states(); _update_gizmos_data(); + post_event(SimpleEvent(EVT_GLCANVAS_OBJECT_SELECT)); } m_mouse.ignore_up_event = false; }