ENH: add placeholder to check whether filaments is BBL
1.Also add some side texts jira: STUDIO-12308,STUDIO-12309 Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I16f21d001cf0c87620a8d7c93b33af4f63981624 (cherry picked from commit 31451dcd3310720692ec2748962f379ac3c50cf4)
This commit is contained in:
@@ -2684,6 +2684,11 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
||||
this->placeholder_parser().set("plate_name", new ConfigOptionString(print.get_plate_name()));
|
||||
this->placeholder_parser().set("first_layer_height", new ConfigOptionFloat(m_config.initial_layer_print_height.value));
|
||||
|
||||
auto used_filaments = print.get_slice_used_filaments(false);
|
||||
this->placeholder_parser().set("is_all_bbl_filament", std::all_of(used_filaments.begin(), used_filaments.end(), [&](auto idx) {
|
||||
return m_config.filament_vendor.values[idx] == "Bambu Lab";
|
||||
}));
|
||||
|
||||
//add during_print_exhaust_fan_speed
|
||||
std::vector<int> during_print_exhaust_fan_speed_num;
|
||||
during_print_exhaust_fan_speed_num.reserve(m_config.during_print_exhaust_fan_speed.size());
|
||||
|
||||
Reference in New Issue
Block a user