mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-06 03:16:03 +08: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
This commit is contained in:
parent
891662333e
commit
31451dcd33
@ -2359,6 +2359,11 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
||||
m_placeholder_parser.set("z_offset", new ConfigOptionFloat(0.0f));
|
||||
m_placeholder_parser.set("plate_name", new ConfigOptionString(print.get_plate_name()));
|
||||
|
||||
auto used_filaments = print.get_slice_used_filaments(false);
|
||||
m_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());
|
||||
|
@ -1741,6 +1741,7 @@ void PrintConfigDef::init_fff_params()
|
||||
def->nullable = true;
|
||||
def->min = 0;
|
||||
def->max = max_temp;
|
||||
def->sidetext = "°C";
|
||||
def->set_default_value(new ConfigOptionIntsNullable{0});
|
||||
|
||||
def = this->add("filament_flush_volumetric_speed", coFloats);
|
||||
@ -1750,6 +1751,7 @@ void PrintConfigDef::init_fff_params()
|
||||
def->nullable = true;
|
||||
def->min = 0;
|
||||
def->max = 200;
|
||||
def->sidetext = L("mm³/s");
|
||||
def->set_default_value(new ConfigOptionFloatsNullable{ 0 });
|
||||
|
||||
def = this->add("filament_max_volumetric_speed", coFloats);
|
||||
@ -3419,6 +3421,7 @@ void PrintConfigDef::init_fff_params()
|
||||
def->nullable = true;
|
||||
def->min = 0;
|
||||
def->max = 10;
|
||||
def->sidetext = L("mm");
|
||||
def->set_default_value(new ConfigOptionFloatsNullable{10});
|
||||
|
||||
def = this->add("retract_length_toolchange", coFloats);
|
||||
|
@ -1036,6 +1036,7 @@ PRINT_CONFIG_CLASS_DEFINE(
|
||||
((ConfigOptionStrings, filament_type))
|
||||
((ConfigOptionBools, filament_soluble))
|
||||
((ConfigOptionStrings, filament_ids))
|
||||
((ConfigOptionStrings, filament_vendor))
|
||||
((ConfigOptionBools, filament_is_support))
|
||||
((ConfigOptionInts, filament_printable))
|
||||
((ConfigOptionEnumsGeneric, filament_scarf_seam_type))
|
||||
|
Loading…
x
Reference in New Issue
Block a user