Revert "Reduce memory usage during gcode output by discarding processed layers."

This reverts commit 4d1551c305.
This commit is contained in:
Alessandro Ranellucci 2012-06-30 16:12:06 +02:00
parent d5c9b74377
commit a7668e0933

View File

@ -587,7 +587,6 @@ sub write_gcode {
for my $obj_copy (@$object_copies) { for my $obj_copy (@$object_copies) {
my ($obj_idx, $copy) = @$obj_copy; my ($obj_idx, $copy) = @$obj_copy;
my $layer = $self->objects->[$obj_idx]->layers->[$layer_id]; my $layer = $self->objects->[$obj_idx]->layers->[$layer_id];
$self->objects->[$obj_idx]->layers->[$layer_id] = undef;
# retract explicitely because changing the shift_[xy] properties below # retract explicitely because changing the shift_[xy] properties below
# won't always trigger the automatic retraction # won't always trigger the automatic retraction