From 8e06a4f6f24e30a40d502f4324db17a7a682a4b3 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 15 Dec 2011 21:46:29 +0100 Subject: [PATCH] Bugfix: fatal error when using concentric infill --- lib/Slic3r.pm | 2 +- lib/Slic3r/Fill/Concentric.pm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index 61df506e4e..f4ff98c899 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -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 { diff --git a/lib/Slic3r/Fill/Concentric.pm b/lib/Slic3r/Fill/Concentric.pm index c2d3142bbc..7bd01ba646 100644 --- a/lib/Slic3r/Fill/Concentric.pm +++ b/lib/Slic3r/Fill/Concentric.pm @@ -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;