From a33b64c9a301b23f4a0d99996993de5106b0ec73 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Thu, 10 Jan 2019 08:37:54 +0100 Subject: [PATCH] Gizmo shortcuts disabled if selection is empty --- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 253fcb951b..8875bc157d 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -2983,7 +2983,7 @@ bool GLCanvas3D::Gizmos::is_running() const bool GLCanvas3D::Gizmos::handle_shortcut(int key, const Selection& selection) { - if (!m_enabled) + if (!m_enabled || selection.is_empty()) return false; bool handled = false;