mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Do not show as hovered the entire instance when hovering on modifiers
This commit is contained in:
parent
43b51c338e
commit
a80978f84a
1 changed files with 2 additions and 10 deletions
|
@ -4000,14 +4000,9 @@ void GLCanvas3D::_update_volumes_hover_state() const
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GLVolume* volume = m_volumes.volumes[m_hover_volume_id];
|
GLVolume* volume = m_volumes.volumes[m_hover_volume_id];
|
||||||
switch (m_selection.get_mode())
|
if (volume->is_modifier)
|
||||||
{
|
|
||||||
case Selection::Volume:
|
|
||||||
{
|
|
||||||
volume->hover = true;
|
volume->hover = true;
|
||||||
break;
|
else
|
||||||
}
|
|
||||||
case Selection::Instance:
|
|
||||||
{
|
{
|
||||||
int object_idx = volume->object_idx();
|
int object_idx = volume->object_idx();
|
||||||
int instance_idx = volume->instance_idx();
|
int instance_idx = volume->instance_idx();
|
||||||
|
@ -4017,9 +4012,6 @@ void GLCanvas3D::_update_volumes_hover_state() const
|
||||||
if ((v->object_idx() == object_idx) && (v->instance_idx() == instance_idx))
|
if ((v->object_idx() == object_idx) && (v->instance_idx() == instance_idx))
|
||||||
v->hover = true;
|
v->hover = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue