FIX: get nozzle_diameter error
jira: none Change-Id: Ic33854a0d7322fe9154910480d2ea3ceae524f79
This commit is contained in:
parent
c26521470f
commit
12912f6772
|
@ -575,7 +575,8 @@ void PartPlate::render_logo(bool bottom, bool render_cali)
|
||||||
curr_bed_type = proj_cfg.opt_enum<BedType>(std::string("curr_bed_type"));
|
curr_bed_type = proj_cfg.opt_enum<BedType>(std::string("curr_bed_type"));
|
||||||
}
|
}
|
||||||
int bed_type_idx = (int)curr_bed_type;
|
int bed_type_idx = (int)curr_bed_type;
|
||||||
bool is_single_extruder = m_print->config().nozzle_diameter.size() == 1;
|
DynamicPrintConfig *global_config = &wxGetApp().preset_bundle->printers.get_edited_preset().config;
|
||||||
|
auto is_single_extruder = global_config->option<ConfigOptionFloatsNullable>("nozzle_diameter")->size() == 1;
|
||||||
if (!is_single_extruder) {
|
if (!is_single_extruder) {
|
||||||
bed_type_idx = 0;
|
bed_type_idx = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue