mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06: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:
parent
b6a54103b8
commit
c7d8b3871a
2 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue