From 4bb32f3b67fd40bb74252775ac656ad622f82f47 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Fri, 3 Mar 2023 09:41:21 +0100 Subject: [PATCH] SPE-1563: Force all toolpaths on first layer to have height equal to first layer height --- 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 555aab0c1..71d723ca3 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -2402,7 +2402,7 @@ void GCodeProcessor::process_G1(const GCodeReader::GCodeLine& line) if (m_forced_height > 0.0f) m_height = m_forced_height; else if (m_layer_id == 0) - m_height = std::min((float)m_end_position[Z], m_first_layer_height + m_z_offset); + m_height = m_first_layer_height + m_z_offset; else if (line.comment() != INTERNAL_G2G3_TAG){ if (m_end_position[Z] > m_extruded_last_z + EPSILON && delta_pos[Z] == 0.0) m_height = m_end_position[Z] - m_extruded_last_z;