From 253b24e29897932cd0c67d7ed5a73a0f6030c829 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 27 Jul 2022 15:35:35 +0200 Subject: [PATCH] When pressing ESC key to clear the current selection do not repeatedly update the view if the user keeps the key pressed. --- src/slic3r/GUI/GLCanvas3D.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 2f6f6bba7..890e73773 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -1827,6 +1827,9 @@ void GLCanvas3D::select_all() void GLCanvas3D::deselect_all() { + if (m_selection.is_empty()) + return; + m_selection.remove_all(); wxGetApp().obj_manipul()->set_dirty(); m_gizmos.reset_all_states();