Fix warning
This commit is contained in:
parent
ea304a4803
commit
dcc0ce78db
1 changed files with 2 additions and 2 deletions
|
@ -742,8 +742,8 @@ sub write_gcode {
|
||||||
# prepare callback to call as soon as a Z command is generated
|
# prepare callback to call as soon as a Z command is generated
|
||||||
$gcodegen->move_z_callback(sub {
|
$gcodegen->move_z_callback(sub {
|
||||||
$gcodegen->move_z_callback(undef); # circular ref or not?
|
$gcodegen->move_z_callback(undef); # circular ref or not?
|
||||||
return $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode) . "\n"
|
return "" if !$Slic3r::Config->layer_gcode;
|
||||||
if $Slic3r::Config->layer_gcode;
|
return $Slic3r::Config->replace_options($Slic3r::Config->layer_gcode) . "\n";
|
||||||
});
|
});
|
||||||
|
|
||||||
# extrude skirt
|
# extrude skirt
|
||||||
|
|
Loading…
Reference in a new issue