mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
CTRL-click replace SHIFT-click for addind/removing objects to the current selection from the 3D scene
This commit is contained in:
parent
2487bb8794
commit
8cdc461d34
1 changed files with 3 additions and 3 deletions
|
@ -3563,15 +3563,15 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
||||||
if (evt.LeftDown() && (m_hover_volume_id != -1))
|
if (evt.LeftDown() && (m_hover_volume_id != -1))
|
||||||
{
|
{
|
||||||
bool already_selected = m_selection.contains_volume(m_hover_volume_id);
|
bool already_selected = m_selection.contains_volume(m_hover_volume_id);
|
||||||
bool shift_down = evt.ShiftDown();
|
bool ctrl_down = evt.CmdDown();
|
||||||
|
|
||||||
Selection::IndicesList curr_idxs = m_selection.get_volume_idxs();
|
Selection::IndicesList curr_idxs = m_selection.get_volume_idxs();
|
||||||
|
|
||||||
if (already_selected && shift_down)
|
if (already_selected && ctrl_down)
|
||||||
m_selection.remove(m_hover_volume_id);
|
m_selection.remove(m_hover_volume_id);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bool add_as_single = !already_selected && !shift_down;
|
bool add_as_single = !already_selected && !ctrl_down;
|
||||||
m_selection.add(m_hover_volume_id, add_as_single);
|
m_selection.add(m_hover_volume_id, add_as_single);
|
||||||
m_mouse.drag.move_requires_threshold = !already_selected;
|
m_mouse.drag.move_requires_threshold = !already_selected;
|
||||||
if (already_selected)
|
if (already_selected)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue