From fc3dfdd1061c253c7221c30eca58184f6e69c0e4 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Tue, 31 Jan 2023 12:47:26 +0100 Subject: [PATCH] Clear activ id only when it is not same volume (id could changed) --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index 4293dfff2..cd0c2cc20 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -1083,7 +1083,9 @@ void GLGizmoEmboss::set_volume_by_selection() remove_notification_not_valid_font(); // Do not use focused input value when switch volume(it must swith value) - if (m_volume != nullptr) ImGui::ClearActiveID(); + if (m_volume != nullptr && + m_volume != vol) // when update volume it changed id BUT not pointer + ImGui::ClearActiveID(); // is select embossed volume? if (!set_volume(vol)) {