NEW: save unrecognized matadata field in 3dmodel.model

Change-Id: Ia5db9990b8b871f03ffd961cbf1808d228060e21
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-11-14 11:03:29 +08:00 committed by Lane.Wei
parent b6a54103b8
commit c7d8b3871a
2 changed files with 22 additions and 0 deletions

View file

@ -1233,12 +1233,20 @@ 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
void load(ModelInfo &info) {
this->cover_file = info.cover_file;
this->license = info.license;
this->description = info.description;
this->copyright = info.copyright;
this->model_name = info.model_name;
this->metadata_items = info.metadata_items;
}
};