Bugfix: brim was extruded multiple times when sequential printing was enabled
This commit is contained in:
parent
a7668e0933
commit
5eb1982081
1 changed files with 3 additions and 1 deletions
|
@ -550,6 +550,7 @@ sub write_gcode {
|
||||||
|
|
||||||
# prepare the logic to print one layer
|
# prepare the logic to print one layer
|
||||||
my $skirt_done = 0; # count of skirt layers done
|
my $skirt_done = 0; # count of skirt layers done
|
||||||
|
my $brim_done = 0;
|
||||||
my $extrude_layer = sub {
|
my $extrude_layer = sub {
|
||||||
my ($layer_id, $object_copies) = @_;
|
my ($layer_id, $object_copies) = @_;
|
||||||
my $gcode = "";
|
my $gcode = "";
|
||||||
|
@ -580,8 +581,9 @@ sub write_gcode {
|
||||||
}
|
}
|
||||||
|
|
||||||
# extrude brim
|
# extrude brim
|
||||||
if ($layer_id == 0) {
|
if ($layer_id == 0 && !$brim_done) {
|
||||||
$gcode .= $gcodegen->extrude_loop($_, 'brim') for @{$self->brim};
|
$gcode .= $gcodegen->extrude_loop($_, 'brim') for @{$self->brim};
|
||||||
|
$brim_done = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for my $obj_copy (@$object_copies) {
|
for my $obj_copy (@$object_copies) {
|
||||||
|
|
Loading…
Reference in a new issue