Support for Vendor / Printer Model specific print bed texture and model.

This commit is contained in:
bubnikv 2020-01-07 14:08:21 +01:00
parent 8559360cf8
commit 70bc392003
3 changed files with 37 additions and 0 deletions

View file

@ -184,6 +184,8 @@ VendorProfile VendorProfile::from_ini(const ptree &tree, const boost::filesystem
} else {
BOOST_LOG_TRIVIAL(error) << boost::format("Vendor bundle: `%1%`: Malformed variants field: `%2%`") % id % variants_field;
}
model.bed_model = section.second.get<std::string>("bed_model", "");
model.bed_texture = section.second.get<std::string>("bed_texture", "");
if (! model.id.empty() && ! model.variants.empty())
res.models.push_back(std::move(model));
}