mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-28 13:22:06 +00:00
ENH:update image for plate type
jira: none Change-Id: I590bf9d6596ccf5cd6e06844fb3ed247fa526ba6 (cherry picked from commit 6be306e548be9129d6cf1c34242910be02a70ed8)
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
#define BBL_JSON_KEY_FAMILY "family"
|
||||
#define BBL_JSON_KEY_BED_MODEL "bed_model"
|
||||
#define BBL_JSON_KEY_BED_TEXTURE "bed_texture"
|
||||
#define BBL_JSON_KEY_IMAGE_BED_TYPE "image_bed_type"
|
||||
#define BBL_JSON_KEY_HOTEND_MODEL "hotend_model"
|
||||
#define BBL_JSON_KEY_DEFAULT_MATERIALS "default_materials"
|
||||
#define BBL_JSON_KEY_NOT_SUPPORT_BED_TYPE "not_support_bed_type"
|
||||
@@ -118,8 +119,8 @@ public:
|
||||
// Vendor & Printer Model specific print bed model & texture.
|
||||
std::string bed_model;
|
||||
std::string bed_texture;
|
||||
std::string image_bed_type;
|
||||
std::string hotend_model;
|
||||
|
||||
PrinterVariant* variant(const std::string &name) {
|
||||
for (auto &v : this->variants)
|
||||
if (v.name == name)
|
||||
|
||||
@@ -3299,6 +3299,8 @@ std::pair<PresetsConfigSubstitutions, size_t> PresetBundle::load_vendor_configs_
|
||||
else if (boost::iequals(it.key(), BBL_JSON_KEY_BED_MODEL)) {
|
||||
//get bed model
|
||||
model.bed_model = it.value();
|
||||
} else if (boost::iequals(it.key(), BBL_JSON_KEY_IMAGE_BED_TYPE)) {
|
||||
model.image_bed_type = it.value();
|
||||
}
|
||||
else if (boost::iequals(it.key(), BBL_JSON_KEY_BED_TEXTURE)) {
|
||||
//get bed texture
|
||||
|
||||
Reference in New Issue
Block a user