Bugfix: [input_filename] and [input_filename_base] were only available in the filename pattern and not in the custom G-code settings. #1507

This commit is contained in:
Alessandro Ranellucci 2013-11-02 15:49:20 +01:00
parent 0b63afb370
commit 4755e61d71
3 changed files with 19 additions and 12 deletions

View file

@ -66,7 +66,7 @@ sub process_layer {
# set new layer - this will change Z and force a retraction if retract_layer_change is enabled
$gcode .= $self->gcodegen->change_layer($layer);
$gcode .= $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode, {
$gcode .= $self->print->replace_variables($Slic3r::Config->layer_gcode, {
layer_num => $self->gcodegen->layer->id,
}) . "\n" if $Slic3r::Config->layer_gcode;