From cc9463c017bc9d3ad983f79f25e082168e2fa4bf Mon Sep 17 00:00:00 2001 From: "qing.zhang" Date: Tue, 16 Aug 2022 16:14:35 +0800 Subject: [PATCH] FIX: fix the error location of G2 cmd in GCode Signed-off-by: qing.zhang Change-Id: I51b728916570f94167af4c535b86a45b1df22c56 --- src/libslic3r/GCode/GCodeProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index 73fcb6fbbf..f3ec275291 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -3685,7 +3685,7 @@ void GCodeProcessor::store_move_vertex(EMoveType type, EMovePathType path_type) m_interpolation_points[i] = Vec3f(m_interpolation_points[i].x() + m_x_offset, m_interpolation_points[i].y() + m_y_offset, - m_interpolation_points[i].z()) + + m_processing_start_custom_gcode ? m_first_layer_height : m_interpolation_points[i].z()) + m_extruder_offsets[m_extruder_id]; }