From 5f1714f02ceeb34519e0ec401d37be3ff7efa87b Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Fri, 28 Mar 2025 18:16:56 +0800 Subject: [PATCH] FIX: 3mf: fix a popup issue while parsing old 3mf jira: no-jira Change-Id: I89f0b83f146bea60ef821160254cee4d2c0eb0ca --- src/libslic3r/Format/bbs_3mf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/Format/bbs_3mf.cpp b/src/libslic3r/Format/bbs_3mf.cpp index 88228f27f..3950a834e 100644 --- a/src/libslic3r/Format/bbs_3mf.cpp +++ b/src/libslic3r/Format/bbs_3mf.cpp @@ -4081,6 +4081,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 { std::stringstream stream(str);