FIX: fix crash when loading 3mf file
jira: none Change-Id: Ice2a518518994871d23a6f478145edd36f0343a2
This commit is contained in:
parent
9b3de1bd3f
commit
b495bfd4e9
|
@ -4171,8 +4171,8 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
||||||
m_curr_plater->config.set_key_value("filament_map_mode", new ConfigOptionEnum<FilamentMapMode>(map_mode));
|
m_curr_plater->config.set_key_value("filament_map_mode", new ConfigOptionEnum<FilamentMapMode>(map_mode));
|
||||||
}
|
}
|
||||||
else if (key == FILAMENT_MAP_ATTR) {
|
else if (key == FILAMENT_MAP_ATTR) {
|
||||||
|
if (m_curr_plater)
|
||||||
m_curr_plater->config.set_key_value("filament_map", new ConfigOptionInts(get_vector_from_string(value)));
|
m_curr_plater->config.set_key_value("filament_map", new ConfigOptionInts(get_vector_from_string(value)));
|
||||||
}
|
}
|
||||||
else if (key == UNPRINTABLE_FILAMENT_MAP_ATTR)
|
else if (key == UNPRINTABLE_FILAMENT_MAP_ATTR)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue