From abbc99924ef27a3fe5c703c23bd15ec353848d5f Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 24 Aug 2022 09:48:50 +0200 Subject: [PATCH] Follow-up of 6be84d529d740c44c1e9bf533e70e167b3442063 - Fixed processing of spiral vase mode in GCodeProcessor::process_G1 --- 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 e1341fa98..4e0445e2f 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -2913,7 +2913,7 @@ void GCodeProcessor::process_G1(const GCodeReader::GCodeLine& line) } if (m_spiral_vase_active && !m_result.spiral_vase_layers.empty()) { - if (m_result.spiral_vase_layers.back().first == FLT_MAX && delta_pos[Z] > 0.0) + if (m_result.spiral_vase_layers.back().first == FLT_MAX && delta_pos[Z] >= 0.0) // replace layer height placeholder with correct value m_result.spiral_vase_layers.back().first = static_cast(m_end_position[Z]); if (!m_result.moves.empty())