Refactoring: new Layer::make_fill() method

This commit is contained in:
Alessandro Ranellucci 2016-02-20 20:50:40 +01:00
parent 9eabbded2b
commit a32937cef2
3 changed files with 15 additions and 15 deletions

View file

@ -29,6 +29,15 @@ sub regions {
return [ map $self->get_region($_), 0..($self->region_count-1) ];
}
sub make_fill {
my ($self) = @_;
foreach my $layerm (@{$self->regions}) {
$layerm->fills->clear;
$layerm->fills->append($_) for $self->object->fill_maker->make_fill($layerm);
}
}
package Slic3r::Layer::Support;
our @ISA = qw(Slic3r::Layer);