mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 17:15:57 +08:00
fix crash on slice if no extruder names
This commit is contained in:
parent
89f777d72d
commit
5279d2b697
@ -540,7 +540,7 @@ void GCodeProcessor::apply_config(const PrintConfig& config)
|
|||||||
|
|
||||||
m_extruder_names.resize(extruders_count);
|
m_extruder_names.resize(extruders_count);
|
||||||
for (size_t i = 0; i < extruders_count; ++i) {
|
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);
|
m_extruder_colors.resize(extruders_count);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user