Bugfix: fatal error when using concentric infill

This commit is contained in:
Alessandro Ranellucci 2011-12-15 21:46:29 +01:00
parent e6bce05d9b
commit 8e06a4f6f2
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@ package Slic3r;
use strict;
use warnings;
our $VERSION = "0.5.6";
our $VERSION = "0.5.7-beta";
our $debug = 0;
sub debugf {

View file

@ -14,6 +14,9 @@ sub fill_surface {
my $scaled_flow_width = scale $params{flow_width};
my $distance = $scaled_flow_width / $params{density};
# TODO: adjust distance and flow width for solid surfaces
# using the same logic as Rectilinear infill
# (factor it out to parent class)
my @contour_loops = ();
my @hole_loops = ();
@ -49,7 +52,7 @@ sub fill_surface {
push @paths, $path->p;
}
return @paths;
return {}, @paths;
}
1;