From 7483c7bd00874ca2ac53faa929b69e2be73ce729 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 13 Jun 2023 11:13:23 +0200 Subject: [PATCH] Partially revert of https://github.com/Prusa-Development/PrusaSlicerPrivate/commit/8e3a988b This change was redundant, because switch to Manipulation panel is suppressed by disabling of Editors. Moreover it did impossible to close all gizmos when it's really needed and caused a crash on "Select All" action, when some gizmo is open (SPE-1771) --- src/slic3r/GUI/Gizmos/GLGizmosManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp index 578a5ded9..3103cd9dc 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp @@ -173,8 +173,7 @@ void GLGizmosManager::reset_all_states() const EType current = get_current_type(); if (current != Undefined) // close any open gizmo - if (!open_gizmo(current)) - return; + open_gizmo(current); activate_gizmo(Undefined); m_hover = Undefined;