Bugfix: sometimes first layer extrusion width was not applied

This commit is contained in:
Alessandro Ranellucci 2012-10-28 10:28:40 +01:00
parent 49916b6178
commit a0fe93e8cf
2 changed files with 16 additions and 12 deletions

View file

@ -3,7 +3,7 @@ use Moo;
use Slic3r::Geometry::Clipper qw(union_ex);
has 'id' => (is => 'rw', required => 1); # sequential number of layer, 0-based
has 'id' => (is => 'rw', required => 1, trigger => 1); # sequential number of layer, 0-based
has 'object' => (is => 'ro', weak_ref => 1, required => 1);
has 'regions' => (is => 'ro', default => sub { [] });
has 'slicing_errors' => (is => 'rw');
@ -20,6 +20,11 @@ has 'slices' => (is => 'rw');
# ordered collection of extrusion paths to fill surfaces for support material
has 'support_fills' => (is => 'rw');
sub _trigger_id {
my $self = shift;
$_->_trigger_layer for @{$self->regions || []};
}
# Z used for slicing
sub _build_slice_z {
my $self = shift;