FIX: 3mf: fix a popup issue while parsing old 3mf

jira: no-jira
Change-Id: I89f0b83f146bea60ef821160254cee4d2c0eb0ca
(cherry picked from commit 5f1714f02ceeb34519e0ec401d37be3ff7efa87b)
This commit is contained in:
lane.wei
2025-03-28 18:16:56 +08:00
committed by Noisyfox
parent e59a11d539
commit 833108d29a

View File

@@ -4145,6 +4145,8 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
//std::string type = bbs_get_attribute_value_string(attributes, num_attributes, TYPE_ATTR);
std::string key = bbs_get_attribute_value_string(attributes, num_attributes, KEY_ATTR);
std::string value = bbs_get_attribute_value_string(attributes, num_attributes, VALUE_ATTR);
if (key.empty())
return true;
auto get_vector_from_string = [](const std::string& str) -> std::vector<int> {
std::stringstream stream(str);