From a078627552f54497ed0518dc7bc349d243576d19 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 30 Jan 2023 14:00:02 +0100 Subject: [PATCH] Follow-up of 1218103fd620b319c56fd08116f81b581c537188 - Fixed gizmo missbehavior when closing a gizmo by resetting the selection clicking on the scene --- src/slic3r/GUI/Gizmos/GLGizmosManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp index d369c95056..21a1f9ba5a 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp @@ -170,12 +170,12 @@ void GLGizmosManager::reset_all_states() if (! m_enabled || m_serializing) return; - EType current = get_current_type(); + const EType current = get_current_type(); if (current != Undefined) // close any open gizmo open_gizmo(current); - else - activate_gizmo(Undefined); + + activate_gizmo(Undefined); m_hover = Undefined; }