FIX:user_bbl_svg_list may is empty when copy machine
jira: github 5029 Change-Id: I052f7717f25d3d1f364709d4f6ac9c7a72c47e34
This commit is contained in:
parent
a250110cdb
commit
e667a4160a
|
@ -5120,6 +5120,12 @@ void Tab::save_preset(std::string name /*= ""*/, bool detach, bool save_to_proje
|
|||
if (user_bbl_svg_list.size() > 0 && user_bbl_svg_list[curr_preset_name].size() > 0) {
|
||||
extra_map["bed_custom_texture"] = ConfigOptionString(user_bbl_svg_list[curr_preset_name]);
|
||||
}
|
||||
else {
|
||||
auto logo =wxGetApp().plater()->get_partplate_list().get_logo_texture_filename();
|
||||
if (!logo.empty()) {
|
||||
extra_map["bed_custom_texture"] = logo;
|
||||
}
|
||||
}
|
||||
}
|
||||
auto bed_model_path = wxGetApp().plater()->get_partplate_list().get_bed3d()->get_model_filename();
|
||||
if (!bed_model_path.empty()) {
|
||||
|
|
Loading…
Reference in New Issue