mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-20 03:22:18 -07:00
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:
parent
5cc64fa9a4
commit
a6084d01bd
3 changed files with 9 additions and 0 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue