mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-03 12:04:05 -06:00
New [layer_num] placeholder in layer change G-code
This commit is contained in:
parent
8ea4ed3b5e
commit
625a300822
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ sub process_layer {
|
||||||
$self->gcodegen->move_z_callback(sub {
|
$self->gcodegen->move_z_callback(sub {
|
||||||
$self->gcodegen->move_z_callback(undef); # circular ref or not?
|
$self->gcodegen->move_z_callback(undef); # circular ref or not?
|
||||||
return "" if !$Slic3r::Config->layer_gcode;
|
return "" if !$Slic3r::Config->layer_gcode;
|
||||||
return $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode) . "\n";
|
return $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode, {
|
||||||
|
layer_num => $self->gcodegen->layer->id,
|
||||||
|
}) . "\n";
|
||||||
});
|
});
|
||||||
|
|
||||||
# extrude skirt
|
# extrude skirt
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue