SPE-1762: Fixed crash in GCcodeViewer when loading gcode files generated with Cura

This commit is contained in:
enricoturri1966 2023-06-08 13:56:59 +02:00
parent 7c1d2ea532
commit 8b255e8e9b

View File

@ -1065,6 +1065,9 @@ void GCodeProcessor::process_file(const std::string& filename, std::function<voi
apply_config_superslicer(filename);
else if (m_producer == EProducer::KissSlicer)
apply_config_kissslicer(filename);
if (m_result.extruders_count == 0)
m_result.extruders_count = MIN_EXTRUDERS_COUNT;
}
}