#8032 - GCodeProcessor - Fixed parsing of LAYER_CHANGE tag for spiral vase mode
This commit is contained in:
parent
033bee6431
commit
0a2001ed1c
1 changed files with 9 additions and 6 deletions
|
@ -1952,12 +1952,15 @@ void GCodeProcessor::process_tags(const std::string_view comment, bool producers
|
||||||
++m_layer_id;
|
++m_layer_id;
|
||||||
#if ENABLE_SPIRAL_VASE_LAYERS
|
#if ENABLE_SPIRAL_VASE_LAYERS
|
||||||
if (m_spiral_vase_active) {
|
if (m_spiral_vase_active) {
|
||||||
assert(!m_result.moves.empty());
|
if (m_result.moves.empty())
|
||||||
size_t move_id = m_result.moves.size() - 1;
|
m_result.spiral_vase_layers.push_back({ m_first_layer_height, { 0, 0 } });
|
||||||
if (!m_result.spiral_vase_layers.empty() && m_end_position[Z] == m_result.spiral_vase_layers.back().first)
|
else {
|
||||||
m_result.spiral_vase_layers.back().second.second = move_id;
|
const size_t move_id = m_result.moves.size() - 1;
|
||||||
else
|
if (!m_result.spiral_vase_layers.empty() && m_end_position[Z] == m_result.spiral_vase_layers.back().first)
|
||||||
m_result.spiral_vase_layers.push_back({ static_cast<float>(m_end_position[Z]), { move_id, move_id } });
|
m_result.spiral_vase_layers.back().second.second = move_id;
|
||||||
|
else
|
||||||
|
m_result.spiral_vase_layers.push_back({ static_cast<float>(m_end_position[Z]), { move_id, move_id } });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif // ENABLE_SPIRAL_VASE_LAYERS
|
#endif // ENABLE_SPIRAL_VASE_LAYERS
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue