From e74d3667912f95c0dda566de8f6fb25ecfa1fd7c Mon Sep 17 00:00:00 2001 From: SoftFever Date: Sun, 16 Apr 2023 22:06:37 +0800 Subject: [PATCH] fix bed mesh for multi plate --- src/slic3r/GUI/3DBed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/3DBed.cpp b/src/slic3r/GUI/3DBed.cpp index 6ed29cde40..0c8d645882 100644 --- a/src/slic3r/GUI/3DBed.cpp +++ b/src/slic3r/GUI/3DBed.cpp @@ -630,9 +630,9 @@ GeometryBuffer Bed3D::update_bed_triangles() const BoundingBoxf3 build_volume; if (!m_build_volume.valid()) return new_triangles; - - (*model_offset_ptr)(0) = 0;//m_build_volume.bounding_volume2d().min.x(); - (*model_offset_ptr)(1) = 0; // m_build_volume.bounding_volume2d().min.y(); + auto bed_ext = get_extents(m_bed_shape); + (*model_offset_ptr)(0) = m_build_volume.bounding_volume2d().min.x() - bed_ext.min.x(); + (*model_offset_ptr)(1) = m_build_volume.bounding_volume2d().min.y() - bed_ext.min.y(); (*model_offset_ptr)(2) = -0.41 + GROUND_Z; std::vector new_bed_shape;