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;