mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-09-13 19:13:15 +08:00
add "temperature" variable support
This commit is contained in:
parent
ff10d5f661
commit
6d7071bf2d
@ -2221,9 +2221,11 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||||||
this->placeholder_parser().set("initial_no_support_tool", initial_non_support_extruder_id);
|
this->placeholder_parser().set("initial_no_support_tool", initial_non_support_extruder_id);
|
||||||
this->placeholder_parser().set("initial_no_support_extruder", initial_non_support_extruder_id);
|
this->placeholder_parser().set("initial_no_support_extruder", initial_non_support_extruder_id);
|
||||||
this->placeholder_parser().set("current_extruder", initial_extruder_id);
|
this->placeholder_parser().set("current_extruder", initial_extruder_id);
|
||||||
//set the key for compatibilty
|
//Orca: set the key for compatibilty
|
||||||
this->placeholder_parser().set("retraction_distance_when_cut", m_config.retraction_distances_when_cut.get_at(initial_extruder_id));
|
this->placeholder_parser().set("retraction_distance_when_cut", m_config.retraction_distances_when_cut.get_at(initial_extruder_id));
|
||||||
this->placeholder_parser().set("long_retraction_when_cut", m_config.long_retractions_when_cut.get_at(initial_extruder_id));
|
this->placeholder_parser().set("long_retraction_when_cut", m_config.long_retractions_when_cut.get_at(initial_extruder_id));
|
||||||
|
this->placeholder_parser().set("temperature", new ConfigOptionInts(print.config().nozzle_temperature));
|
||||||
|
|
||||||
|
|
||||||
this->placeholder_parser().set("retraction_distances_when_cut", new ConfigOptionFloats(m_config.retraction_distances_when_cut));
|
this->placeholder_parser().set("retraction_distances_when_cut", new ConfigOptionFloats(m_config.retraction_distances_when_cut));
|
||||||
this->placeholder_parser().set("long_retractions_when_cut",new ConfigOptionBools(m_config.long_retractions_when_cut));
|
this->placeholder_parser().set("long_retractions_when_cut",new ConfigOptionBools(m_config.long_retractions_when_cut));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user