From d3e7a9613ec2ed6e4d28d5a9e70df230f432bc27 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 23 Feb 2022 11:01:02 +0100 Subject: [PATCH] Fix of cut gizmo: contour placed incorrectly with elevated objects --- src/slic3r/GUI/Gizmos/GLGizmoCut.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp b/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp index bdc915e4a..bbf1623d0 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp @@ -299,6 +299,8 @@ void GLGizmoCut::update_contours() MeshSlicingParams slicing_params; slicing_params.trafo = first_glvolume->get_instance_transformation().get_matrix(); + slicing_params.trafo.pretranslate(Vec3d(0., 0., first_glvolume->get_sla_shift_z())); + const Polygons polys = slice_mesh(m_cut_contours.mesh.its, m_cut_z, slicing_params); if (!polys.empty()) { m_cut_contours.contours.init_from(polys, static_cast(m_cut_z));