mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 21:28:59 +08:00
Fixed preview of ExtrusionMultiPath instances.
This commit is contained in:
parent
c0b3de6248
commit
081c1d681c
@ -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…
x
Reference in New Issue
Block a user