diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-03-16 22:39:00 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-03-16 22:39:00 +0400 |
commit | 10b6bc9d15e8a284cb8c98abb6aadb8d5724e9fb (patch) | |
tree | 0663b419e9dbfed0542689db6958144e92e0500c | |
parent | f4b81856988456984f71457367696557e2a8c6f3 (diff) |
Removed keep_meshes
-rw-r--r-- | lib/Slic3r/Print.pm | 4 | ||||
-rw-r--r-- | lib/Slic3r/Print/Object.pm | 2 | ||||
-rw-r--r-- | t/combineinfill.t | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 075b4edc2..e5025cc09 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -324,7 +324,7 @@ sub export_gcode { # skein the STL into layers # each layer has surfaces with holes $status_cb->(10, "Processing triangulated mesh"); - $_->slice(keep_meshes => $params{keep_meshes}) for @{$self->objects}; + $_->slice for @{$self->objects}; # make perimeters # this will add a set of extrusion loops to each layer @@ -477,7 +477,7 @@ sub export_svg { # calls ->perimeter_flow $self->init_extruders; - $_->slice(keep_meshes => $params{keep_meshes}) for @{$self->objects}; + $_->slice for @{$self->objects}; $self->arrange_objects; my $output_file = $self->expanded_output_filepath($params{output_file}); diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index 6ab07bd6b..3abc5c2d7 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -121,7 +121,7 @@ sub slice { die "Invalid input file\n" if !@{$self->layers}; # free memory - $self->meshes(undef) unless $params{keep_meshes}; + $self->meshes(undef); # remove last layer if empty # (we might have created it because of the $max_layer = ... + 1 code in TriangleMesh) diff --git a/t/combineinfill.t b/t/combineinfill.t index f5f54fa85..77eabcc02 100644 --- a/t/combineinfill.t +++ b/t/combineinfill.t @@ -40,7 +40,7 @@ use Slic3r::Test; # copy of Print::export_gcode() up to the point # after fill surfaces are combined $self->init_extruders; - $_->slice(keep_meshes => 1) for @{$self->objects}; + $_->slice for @{$self->objects}; $_->make_perimeters for @{$self->objects}; foreach my $layer (map @{$_->layers}, @{$self->objects}) { @$_ = map $_->simplify(&Slic3r::SCALED_RESOLUTION), @$_ |