From 3e42222b786cd93ca7abb8a8dacb80c11f894f2e 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 (cherry picked from commit 5f1714f02ceeb34519e0ec401d37be3ff7efa87b) --- 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 c9f6339e175..f6452bcaec1 100644 --- a/src/libslic3r/Format/bbs_3mf.cpp +++ b/src/libslic3r/Format/bbs_3mf.cpp @@ -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 { std::stringstream stream(str);