mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-10 20:39:09 +08:00
Gizmo shortcuts disabled if selection is empty
This commit is contained in:
parent
cde0aa4443
commit
a33b64c9a3
@ -2983,7 +2983,7 @@ bool GLCanvas3D::Gizmos::is_running() const
|
|||||||
|
|
||||||
bool GLCanvas3D::Gizmos::handle_shortcut(int key, const Selection& selection)
|
bool GLCanvas3D::Gizmos::handle_shortcut(int key, const Selection& selection)
|
||||||
{
|
{
|
||||||
if (!m_enabled)
|
if (!m_enabled || selection.is_empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
bool handled = false;
|
bool handled = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user