From 1516807baf1d8b22539d7e5c83247af40942c45a Mon Sep 17 00:00:00 2001 From: "songwei.li" Date: Wed, 13 Aug 2025 15:57:50 +0800 Subject: [PATCH] FIX: scratches on the surface in byobject mode When printing by object, not lifted when traveling to the second piece, which causes scratches on the surface of the first piece. Modify the lift height in GCode.cpp to add a z_hop height to the highest print height to avoid scratches. jira: STUDIO-14001 Change-Id: I97835fce5b82f405d600f5aa6ce74edae1e97b47 (cherry picked from commit 9282806196e455883b36b17391a404106c4b3c82) --- src/libslic3r/GCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index d9eed65eb23..f61ea165135 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -2959,7 +2959,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato else { file.write(this->retract()); } - file.write(m_writer.travel_to_z(m_max_layer_z)); + file.write(m_writer.travel_to_z(m_max_layer_z + m_writer.config.z_hop.get_at(initial_extruder_id))); file.write(this->travel_to(Point(0, 0), erNone, "move to origin position for next object")); m_enable_cooling_markers = true; // Disable motion planner when traveling to first object point.