ENH: store 3mf metadata info to a map

Change-Id: I17700b1c4a7e47b017d18815e76b4b9bed5c9de4
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-11-17 21:07:08 +08:00 committed by Lane.Wei
parent cb5f5a26cf
commit cb83284b24
2 changed files with 45 additions and 47 deletions

View file

@ -1233,12 +1233,7 @@ public:
std::string copyright; // utf8 format
std::string model_name; // utf8 format
struct MetaDataItem
{
std::string key;
std::string value;
};
std::vector<MetaDataItem> metadata_items; // other meta data items
std::map<std::string, std::string> metadata_items; // other meta data items
void load(ModelInfo &info) {
this->cover_file = info.cover_file;