Fixed regression preventing STL export from working. #387

This commit is contained in:
Alessandro Ranellucci 2012-05-29 09:35:57 +02:00
parent e383d5e02d
commit ce3e2d396e

View File

@ -577,7 +577,7 @@ sub export_stl {
$cloned_mesh->move(@$copy); $cloned_mesh->move(@$copy);
my $vertices_offset = scalar @{$mesh->vertices}; my $vertices_offset = scalar @{$mesh->vertices};
push @{$mesh->vertices}, @{$cloned_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); $mesh->scale($Slic3r::scaling_factor);