Follow-up of 6be84d529d - Fixed processing of spiral vase mode in GCodeProcessor::process_G1

This commit is contained in:
enricoturri1966 2022-08-24 09:48:50 +02:00
parent c774603179
commit abbc99924e

View File

@ -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_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 // replace layer height placeholder with correct value
m_result.spiral_vase_layers.back().first = static_cast<float>(m_end_position[Z]); m_result.spiral_vase_layers.back().first = static_cast<float>(m_end_position[Z]);
if (!m_result.moves.empty()) if (!m_result.moves.empty())