Bugfix: brim was extruded multiple times when sequential printing was enabled

This commit is contained in:
Alessandro Ranellucci 2012-06-30 16:14:45 +02:00
parent a7668e0933
commit 5eb1982081

View file

@ -550,6 +550,7 @@ sub write_gcode {
# prepare the logic to print one layer
my $skirt_done = 0; # count of skirt layers done
my $brim_done = 0;
my $extrude_layer = sub {
my ($layer_id, $object_copies) = @_;
my $gcode = "";
@ -580,8 +581,9 @@ sub write_gcode {
}
# extrude brim
if ($layer_id == 0) {
if ($layer_id == 0 && !$brim_done) {
$gcode .= $gcodegen->extrude_loop($_, 'brim') for @{$self->brim};
$brim_done = 1;
}
for my $obj_copy (@$object_copies) {