Fixed preview of ExtrusionMultiPath instances.
This commit is contained in:
parent
c0b3de6248
commit
081c1d681c
1 changed files with 2 additions and 1 deletions
|
@ -1969,7 +1969,8 @@ sub _extrusionentity_to_verts {
|
||||||
$lines = [];
|
$lines = [];
|
||||||
$widths = [];
|
$widths = [];
|
||||||
$heights = [];
|
$heights = [];
|
||||||
$closed = 1;
|
# $entity is either of type Slic3r::ExtrusionLoop or Slic3r::ExtrusionMultiPath.
|
||||||
|
$closed = $entity->isa('Slic3r::ExtrusionLoop') ? 1 : 0;
|
||||||
foreach my $path (@$entity) {
|
foreach my $path (@$entity) {
|
||||||
my $polyline = $path->polyline->clone;
|
my $polyline = $path->polyline->clone;
|
||||||
$polyline->remove_duplicate_points;
|
$polyline->remove_duplicate_points;
|
||||||
|
|
Loading…
Add table
Reference in a new issue