FIX: fix crash when loading 3mf file

jira: none
Change-Id: Ice2a518518994871d23a6f478145edd36f0343a2
This commit is contained in:
zhimin.zeng 2024-11-12 15:17:35 +08:00 committed by lane.wei
parent 9b3de1bd3f
commit b495bfd4e9
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
else if (key == FILAMENT_MAP_ATTR) {
m_curr_plater->config.set_key_value("filament_map", new ConfigOptionInts(get_vector_from_string(value)));
if (m_curr_plater)
m_curr_plater->config.set_key_value("filament_map", new ConfigOptionInts(get_vector_from_string(value)));
}
else if (key == UNPRINTABLE_FILAMENT_MAP_ATTR)
{