mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-31 05:47:02 +00:00
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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user