From 902d3bb904fc4f69afb7a798f5e9b63fbd84a19a Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 14 Jan 2020 14:33:56 +0100 Subject: [PATCH] Fixed loading of hole_height when a hole is selected (hollowing gizmo) --- src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp b/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp index 17154de58..ebff04007 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoHollow.cpp @@ -1079,7 +1079,7 @@ void GLGizmoHollow::select_point(int i) if (i == AllPoints) { m_new_hole_radius = m_c->m_model_object->sla_drain_holes[0].radius; - m_new_hole_height = m_c->m_model_object->sla_drain_holes[0].height; + m_new_hole_height = m_c->m_model_object->sla_drain_holes[0].height - HoleStickOutLength; } } else { @@ -1088,7 +1088,7 @@ void GLGizmoHollow::select_point(int i) m_selected[i] = true; m_selection_empty = false; m_new_hole_radius = m_c->m_model_object->sla_drain_holes[i].radius; - m_new_hole_height = m_c->m_model_object->sla_drain_holes[i].height; + m_new_hole_height = m_c->m_model_object->sla_drain_holes[i].height - HoleStickOutLength; } }