From ce3e2d396e8648838801654a97f303c539249c01 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 29 May 2012 09:35:57 +0200 Subject: [PATCH] Fixed regression preventing STL export from working. #387 --- lib/Slic3r/GUI/Plater.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 4f5e799e..db4467be 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -577,7 +577,7 @@ sub export_stl { $cloned_mesh->move(@$copy); my $vertices_offset = scalar @{$mesh->vertices}; push @{$mesh->vertices}, @{$cloned_mesh->vertices}; - push @{$mesh->facets}, map [ $_->[0], map $vertices_offset + $_, @$_[1,2,3] ], @{$cloned_mesh->facets}; + push @{$mesh->facets}, map [ $_->[0], map $vertices_offset + $_, @$_[-3..-1] ], @{$cloned_mesh->facets}; } } $mesh->scale($Slic3r::scaling_factor);