FIX: fix the error location of G2 cmd in GCode

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I51b728916570f94167af4c535b86a45b1df22c56
This commit is contained in:
qing.zhang 2022-08-16 16:14:35 +08:00 committed by Lane.Wei
parent f745c5fea2
commit cc9463c017

View file

@ -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];
}