mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-18 04:05:57 +08:00
Fixed regression where end gcode wasn't being applied in CLI path.
This commit is contained in:
parent
fbdb8da86b
commit
6303d0a59a
@ -128,7 +128,7 @@ PrintGCode::output()
|
||||
|
||||
if (include_start_extruder_temp) this->_print_first_layer_temperature(0);
|
||||
|
||||
// Apply gcode math to start and end gcode
|
||||
// Apply gcode math to start gcode
|
||||
fh << apply_math(gcodegen.placeholder_parser->process(config.start_gcode.value));
|
||||
|
||||
for(const auto& start_gcode : config.start_filament_gcode.values) {
|
||||
@ -276,6 +276,11 @@ PrintGCode::output()
|
||||
|
||||
// Write end commands to file.
|
||||
fh << gcodegen.retract(); // TODO: process this retract through PressureRegulator in order to discharge fully
|
||||
for(const auto& end_gcode : config.end_filament_gcode.values) {
|
||||
fh << apply_math(gcodegen.placeholder_parser->process(end_gcode));
|
||||
}
|
||||
|
||||
fh << apply_math(gcodegen.placeholder_parser->process(config.end_gcode));
|
||||
|
||||
// set bed temperature
|
||||
if (config.has_heatbed && temp > 0 && std::regex_search(config.end_gcode.getString(), bed_temp_regex)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user