FIX:read "bed_custom_texture" for non-system printer

jira: none
Change-Id: Ibc5e3ee88ca1b8e46e2f110d16629045f37d722f
This commit is contained in:
zhou.xu 2024-07-11 15:57:15 +08:00 committed by Lane.Wei
parent fb4301191d
commit 2a7ee65e8b
1 changed files with 2 additions and 4 deletions

View File

@ -12522,10 +12522,8 @@ void Plater::set_bed_shape() const
}
}
else {
auto *printer_model = curr->config.opt<ConfigOptionString>("printer_model");
if (printer_model != nullptr && ! printer_model->value.empty()) {
texture_filename = bundle->get_texture_for_printer_model(printer_model->value);
}
auto *bed_custom_texture = curr->config.opt<ConfigOptionString>("bed_custom_texture");
texture_filename = bed_custom_texture->value;
}
}
set_bed_shape(p->config->option<ConfigOptionPoints>("printable_area")->values,