GCode.cpp: Removed a failing assert that was no longer needed

The situation it checked happens when the wipe tower is lower than the tallest print object.
The function processes that correctly.
This commit is contained in:
Lukas Matena 2019-10-10 09:52:13 +02:00
parent def254ddb8
commit 7b45014721

View file

@ -507,7 +507,7 @@ std::string WipeTowerIntegration::prime(GCode &gcodegen)
std::string WipeTowerIntegration::tool_change(GCode &gcodegen, int extruder_id, bool finish_layer)
{
std::string gcode;
assert(m_layer_idx >= 0 && size_t(m_layer_idx) <= m_tool_changes.size());
assert(m_layer_idx >= 0);
if (! m_brim_done || gcodegen.writer().need_toolchange(extruder_id) || finish_layer) {
if (m_layer_idx < (int)m_tool_changes.size()) {
if (! (size_t(m_tool_change_idx) < m_tool_changes[m_layer_idx].size()))