From a80978f84ac4f8a0909e0a88202560bae7ce2da7 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Wed, 10 Apr 2019 12:20:07 +0200 Subject: [PATCH] Do not show as hovered the entire instance when hovering on modifiers --- src/slic3r/GUI/GLCanvas3D.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index fb064596f..1fc75a579 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -4000,14 +4000,9 @@ void GLCanvas3D::_update_volumes_hover_state() const return; GLVolume* volume = m_volumes.volumes[m_hover_volume_id]; - switch (m_selection.get_mode()) - { - case Selection::Volume: - { + if (volume->is_modifier) volume->hover = true; - break; - } - case Selection::Instance: + else { int object_idx = volume->object_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)) v->hover = true; } - - break; - } } }