From 2f255620c62022fcce12a1aa697629819d150a5e Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 8 Jan 2015 15:41:17 +0100 Subject: [PATCH] Fix toolpath preview after recent change of semantics of LayerRegion::perimeters --- lib/Slic3r/GUI/Plater/2DToolpaths.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater/2DToolpaths.pm b/lib/Slic3r/GUI/Plater/2DToolpaths.pm index a0721acd0..3e6f09b27 100644 --- a/lib/Slic3r/GUI/Plater/2DToolpaths.pm +++ b/lib/Slic3r/GUI/Plater/2DToolpaths.pm @@ -301,7 +301,7 @@ sub Render { foreach my $layerm (@{$layer->regions}) { if ($object->step_done(STEP_PERIMETERS)) { $self->color([0.7, 0, 0]); - $self->_draw($object, $print_z, $_) for @{$layerm->perimeters}; + $self->_draw($object, $print_z, $_) for map @$_, @{$layerm->perimeters}; } if ($object->step_done(STEP_INFILL)) {