mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Rectangle selection in 3D scene -> refactored GLVolume member varialbe for hovering
This commit is contained in:
parent
51e1f5cd97
commit
d2d06c9f73
4 changed files with 18 additions and 15 deletions
|
@ -4246,8 +4246,7 @@ void GLCanvas3D::_update_volumes_hover_state() const
|
|||
{
|
||||
for (GLVolume* v : m_volumes.volumes)
|
||||
{
|
||||
v->hover_select = false;
|
||||
v->hover_deselect = false;
|
||||
v->hover = GLVolume::None;
|
||||
}
|
||||
|
||||
if (m_hover_volume_idxs.empty())
|
||||
|
@ -4268,9 +4267,9 @@ void GLCanvas3D::_update_volumes_hover_state() const
|
|||
if (volume->is_modifier && (!deselect || ((volume->object_idx() == m_selection.get_object_idx()) && (volume->instance_idx() == m_selection.get_instance_idx()))))
|
||||
{
|
||||
if (deselect)
|
||||
volume->hover_deselect = true;
|
||||
volume->hover = GLVolume::Deselect;
|
||||
else
|
||||
volume->hover_select = true;
|
||||
volume->hover = GLVolume::Select;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -4282,9 +4281,9 @@ void GLCanvas3D::_update_volumes_hover_state() const
|
|||
if ((v->object_idx() == object_idx) && (v->instance_idx() == instance_idx))
|
||||
{
|
||||
if (deselect)
|
||||
v->hover_deselect = true;
|
||||
v->hover = GLVolume::Deselect;
|
||||
else
|
||||
v->hover_select = true;
|
||||
v->hover = GLVolume::Select;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue