mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 14:37:36 -06:00
Allow right click on empty space while an object selected (#9335)
Update GLCanvas3D.cpp
This commit is contained in:
parent
8dd9e64af8
commit
5b3109945e
1 changed files with 6 additions and 0 deletions
|
@ -4493,6 +4493,12 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||
render();
|
||||
}
|
||||
|
||||
//ORCA allow right click on empty space while an object selected
|
||||
if (m_hover_plate_idxs.empty() && m_hover_volume_idxs.empty() && (m_canvas_type == CanvasView3D) && !m_mouse.dragging) {
|
||||
deselect_all();
|
||||
render();
|
||||
}
|
||||
|
||||
Vec2d logical_pos = pos.cast<double>();
|
||||
#if ENABLE_RETINA_GL
|
||||
const float factor = m_retina_helper->get_scale_factor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue