Gizmo shortcuts disabled if selection is empty

This commit is contained in:
Enrico Turri
2019-01-10 08:37:54 +01:00
parent 51e6f1e9c7
commit 7edce1f64f

View File

@@ -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;