fix crash on slice if no extruder names

This commit is contained in:
remi durand 2021-04-04 16:50:17 +02:00
parent 89f777d72d
commit 5279d2b697

View File

@ -540,7 +540,7 @@ void GCodeProcessor::apply_config(const PrintConfig& config)
m_extruder_names.resize(extruders_count);
for (size_t i = 0; i < extruders_count; ++i) {
m_extruder_names[i] = config.tool_name.values[i];
m_extruder_names[i] = config.tool_name.get_at(i);
}
m_extruder_colors.resize(extruders_count);