Fixed regression preventing STL export from working. #387

degen-loop-screen
Alessandro Ranellucci 2012-05-29 09:35:57 +02:00
parent e383d5e02d
commit ce3e2d396e
1 changed files with 1 additions and 1 deletions

View File

@ -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);