mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-30 12:11:15 -06:00
Bugfix: custom layer G-code was applied before Z change, and not after like it was documented. #869
This commit is contained in:
parent
b70404bb23
commit
ea304a4803
4 changed files with 51 additions and 2 deletions
|
|
@ -738,8 +738,13 @@ sub write_gcode {
|
|||
# set new layer, but don't move Z as support material interfaces may need an intermediate one
|
||||
$gcodegen->layer($self->objects->[$object_copies->[0][0]]->layers->[$layer_id]);
|
||||
$gcodegen->elapsed_time(0);
|
||||
$gcode .= $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode) . "\n"
|
||||
if $Slic3r::Config->layer_gcode;
|
||||
|
||||
# prepare callback to call as soon as a Z command is generated
|
||||
$gcodegen->move_z_callback(sub {
|
||||
$gcodegen->move_z_callback(undef); # circular ref or not?
|
||||
return $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode) . "\n"
|
||||
if $Slic3r::Config->layer_gcode;
|
||||
});
|
||||
|
||||
# extrude skirt
|
||||
if ($skirt_done < $Slic3r::Config->skirt_height) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue