mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-19 19:12:23 -07:00
ENH: add min vitrification temperature in placeholder
jira: NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: Id9da8c829a2ed7469a01a887a0f19b0d32f0c36a (cherry picked from commit 6869abcedac7a3e4ae04467c73656d681a4dda7d)
This commit is contained in:
parent
51317b4753
commit
3f00fd2993
1 changed files with 6 additions and 0 deletions
|
|
@ -2596,6 +2596,11 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||
{
|
||||
BedType curr_bed_type = m_config.curr_bed_type;
|
||||
|
||||
int min_temperature_vitrification = std::numeric_limits<int>::max();
|
||||
for (const auto& extruder : m_writer.extruders())
|
||||
min_temperature_vitrification = std::min(min_temperature_vitrification, m_config.temperature_vitrification.get_at(extruder.id()));
|
||||
|
||||
|
||||
std::string first_layer_bed_temp_str;
|
||||
const ConfigOptionInts* first_bed_temp_opt = m_config.option<ConfigOptionInts>(get_bed_temp_1st_layer_key((BedType)curr_bed_type));
|
||||
const ConfigOptionInts* bed_temp_opt = m_config.option<ConfigOptionInts>(get_bed_temp_key((BedType)curr_bed_type));
|
||||
|
|
@ -2613,6 +2618,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||
this->placeholder_parser().set("chamber_temperature",new ConfigOptionInts(m_config.chamber_temperature));
|
||||
this->placeholder_parser().set("overall_chamber_temperature", new ConfigOptionInt(max_chamber_temp));
|
||||
this->placeholder_parser().set("enable_high_low_temp_mix", new ConfigOptionBool(!print.need_check_multi_filaments_compatibility()));
|
||||
this->placeholder_parser().set("min_vitrification_temperature", new ConfigOptionInt(min_temperature_vitrification));
|
||||
|
||||
// SoftFever: support variables `first_layer_temperature` and `first_layer_bed_temperature`
|
||||
this->placeholder_parser().set("first_layer_bed_temperature", new ConfigOptionInts(*first_bed_temp_opt));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue