Introduce a ->count method for all collections to save time

This commit is contained in:
Alessandro Ranellucci 2013-09-17 23:38:23 +02:00
parent d69c956e75
commit e0da81e8bf
7 changed files with 12 additions and 4 deletions

View file

@ -191,7 +191,7 @@ sub make_fill {
}
# add thin fill regions
if (@{ $layerm->thin_fills }) {
if ($layerm->thin_fills->count > 0) {
push @fills, Slic3r::ExtrusionPath::Collection->new(@{$layerm->thin_fills});
push @fills_ordering_points, $fills[-1]->first_point;
}