mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 22:47:32 -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();
|
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>();
|
Vec2d logical_pos = pos.cast<double>();
|
||||||
#if ENABLE_RETINA_GL
|
#if ENABLE_RETINA_GL
|
||||||
const float factor = m_retina_helper->get_scale_factor();
|
const float factor = m_retina_helper->get_scale_factor();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue