Support for new "default_materials" property at PrinterModel

of system profiles. The "default_materials" key accepts
"default_filaments" as well.
This commit is contained in:
bubnikv 2020-01-13 16:01:01 +01:00
parent 19f0f50e98
commit 9a3901e159
3 changed files with 32 additions and 16 deletions

View file

@ -61,6 +61,7 @@ public:
PrinterTechnology technology;
std::string family;
std::vector<PrinterVariant> variants;
std::vector<std::string> default_materials;
// Vendor & Printer Model specific print bed model & texture.
std::string bed_model;
std::string bed_texture;
@ -563,6 +564,11 @@ public:
const Preset* find_by_model_id(const std::string &model_id) const;
};
namespace PresetUtils {
// PrinterModel of a system profile, from which this preset is derived, or null if it is not derived from a system profile.
const VendorProfile::PrinterModel* system_printer_model(const Preset &preset);
} // namespace PresetUtils
} // namespace Slic3r
#endif /* slic3r_Preset_hpp_ */