FIX:bbl machine log default is empty

jira: none
Change-Id: Ib0f309ca9028efb981261a58abea86624f1fc0d1
This commit is contained in:
zhou.xu 2024-07-01 16:56:00 +08:00 committed by Lane.Wei
parent 604437ba19
commit ea7f000df9

View File

@ -12504,16 +12504,20 @@ void Plater::set_bed_shape() const
if (curr->is_system) {
texture_filename = PresetUtils::system_printer_bed_texture(*curr);
bool is_configed_by_BBL = PresetUtils::system_printer_bed_model(*curr).size() > 0;
if (is_configed_by_BBL && wxGetApp().app_config->has_section("user_bbl_svg_list")) {
auto cur_preset_name = bundle->printers.get_edited_preset().name;
auto user_bbl_svg_list = wxGetApp().app_config->get_section("user_bbl_svg_list");
if (user_bbl_svg_list.size() > 0 && user_bbl_svg_list[cur_preset_name].size() > 0) {
texture_filename = user_bbl_svg_list[cur_preset_name]; }
else {
bool is_bbl_preset = bundle->printers.get_selected_preset().is_bbl_vendor_preset(bundle);
if (is_bbl_preset) {
texture_filename = "";
if (is_configed_by_BBL) {
bool is_bbl_preset = bundle->printers.get_selected_preset().is_bbl_vendor_preset(bundle);
if (wxGetApp().app_config->has_section("user_bbl_svg_list")) {
auto cur_preset_name = bundle->printers.get_edited_preset().name;
auto user_bbl_svg_list = wxGetApp().app_config->get_section("user_bbl_svg_list");
if (user_bbl_svg_list.size() > 0 && user_bbl_svg_list[cur_preset_name].size() > 0) {
texture_filename = user_bbl_svg_list[cur_preset_name];
} else {
if (is_bbl_preset) {
texture_filename = "";
}
}
} else if (is_bbl_preset) {
texture_filename = "";
}
}
}