mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Gizmo shortcuts disabled if selection is empty
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user