Refactoring: new Layer::make_fill() method

This commit is contained in:
Alessandro Ranellucci committed 2016-02-20 20:51:07 +01:00
1 parent 9eabbded2b
commit a32937cef2
3 files changed
+15 -15

No files matched your search

+9
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);