mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 05:35:59 +08:00
New [layer_num] placeholder in layer change G-code
This commit is contained in:
parent
8ea4ed3b5e
commit
625a300822
@ -44,7 +44,9 @@ sub process_layer {
|
||||
$self->gcodegen->move_z_callback(sub {
|
||||
$self->gcodegen->move_z_callback(undef); # circular ref or not?
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user