From b77217f33ecd2cb53c44839478bcc59971690288 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 8 Nov 2023 14:42:21 +0800 Subject: [PATCH] FIX:Press ESC directly to exit after entering the profile rendering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rendering is not normal,Code from PrusaSlicer,thanks for PrusaSlicer and enricoturri1966 commit a078627552f54497ed0518dc7bc349d243576d19 Author: enricoturri1966 Date: Mon Jan 30 14:00:02 2023 +0100 Follow-up of 1218103fd620b319c56fd08116f81b581c537188 - Fixed gizmo missbehavior when closing a gizmo by resetting the selection clicking on the scene Jira: STUDIO-5164 Change-Id: I261da9dba2a5ac37f3e263c175fbccd80d8045bd --- src/slic3r/GUI/Gizmos/GLGizmosManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp index 5c40657dd..dfd288b32 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp @@ -338,6 +338,11 @@ void GLGizmosManager::reset_all_states() if (! m_enabled || m_serializing) return; + const EType current = get_current_type(); + if (current != Undefined) + // close any open gizmo + open_gizmo(current); + activate_gizmo(Undefined); m_hover = Undefined; }