From 74c00cdb7a0ed04d83e2d7ceb187ebecddafb203 Mon Sep 17 00:00:00 2001
From: Alessandro Ranellucci <aar@cpan.org>
Date: Sat, 19 May 2012 23:47:36 +0200
Subject: [PATCH] Yes, recent memory optimizations broke concentric infill too

---
 lib/Slic3r/Fill/Concentric.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/Slic3r/Fill/Concentric.pm b/lib/Slic3r/Fill/Concentric.pm
index b3d4fbedf..7fb0f87c9 100644
--- a/lib/Slic3r/Fill/Concentric.pm
+++ b/lib/Slic3r/Fill/Concentric.pm
@@ -53,6 +53,7 @@ sub fill_surface {
     );
     foreach my $loop (map Slic3r::ExtrusionLoop->new(polygon => $_, role => EXTR_ROLE_FILL), @loops) {
         # extrude all loops ccw
+        $loop->deserialize;
         $loop->polygon->make_counter_clockwise;
         
         # find the point of the loop that is closest to the current extruder position
@@ -60,6 +61,7 @@ sub fill_surface {
         
         # split the loop at the starting point and make a path
         my $path = $loop->split_at($cur_pos);
+        $path->deserialize;
         
         # clip the path to avoid the extruder to get exactly on the first point of the loop
         $path->clip_end(scale $Slic3r::flow_width * 0.15);