From 5f848b7a932368b164a2f4facf4c53b52a3b5166 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Sat, 19 Aug 2023 11:01:00 +0800 Subject: [PATCH] Fixed a bug that print_bed_min/max values were not correct in multi-plate project #1834 --- src/libslic3r/GCode.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 3064a3b767..f7a8701428 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -1795,11 +1795,10 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato is_extruder_used[extruder] = true; m_placeholder_parser.set("is_extruder_used", new ConfigOptionBools(is_extruder_used)); - Vec2f plate_offset = m_writer.get_xy_offset(); { BoundingBoxf bbox(print.config().printable_area.values); - m_placeholder_parser.set("print_bed_min", new ConfigOptionFloats({ bbox.min.x() - plate_offset.x(), bbox.min.y() - plate_offset.y() })); - m_placeholder_parser.set("print_bed_max", new ConfigOptionFloats({ bbox.max.x() - plate_offset.x(), bbox.max.y() - plate_offset.y() })); + m_placeholder_parser.set("print_bed_min", new ConfigOptionFloats({ bbox.min.x(), bbox.min.y()})); + m_placeholder_parser.set("print_bed_max", new ConfigOptionFloats({ bbox.max.x(), bbox.max.y()})); m_placeholder_parser.set("print_bed_size", new ConfigOptionFloats({ bbox.size().x(), bbox.size().y() })); } {