From 5fd87dfab8143674ac5d469689153876e63ca1ed Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Tue, 20 Feb 2018 14:02:31 -0600 Subject: [PATCH] Update GCode.pm Missed a call to process() when performing conditional gcode evaluation. --- lib/Slic3r/Print/GCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Print/GCode.pm b/lib/Slic3r/Print/GCode.pm index c344b4a8a..f3e423fba 100644 --- a/lib/Slic3r/Print/GCode.pm +++ b/lib/Slic3r/Print/GCode.pm @@ -157,7 +157,7 @@ sub export { if $include_start_extruder_temp; printf $fh "%s\n", Slic3r::ConditionalGCode::apply_math($gcodegen->placeholder_parser->process($self->config->start_gcode)); foreach my $start_gcode (@{ $self->config->start_filament_gcode }) { # process filament gcode in order - printf $fh "%s\n", $gcodegen->placeholder_parser->process($start_gcode); + printf $fh "%s\n", Slic3r::ConditionalGCode::apply_math($gcodegen->placeholder_parser->process($start_gcode)); } $self->_print_first_layer_temperature(1) if $include_start_extruder_temp;