mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 16:59:04 +08:00
Only make the inwards move when we have more than one perimeter
This commit is contained in:
parent
7c89476602
commit
ece6dd8a0b
@ -156,7 +156,7 @@ sub extrude_loop {
|
|||||||
$self->wipe_path($extrusion_path->polyline);
|
$self->wipe_path($extrusion_path->polyline);
|
||||||
|
|
||||||
# make a little move inwards before leaving loop
|
# make a little move inwards before leaving loop
|
||||||
if ($loop->role == EXTR_ROLE_EXTERNAL_PERIMETER) {
|
if ($loop->role == EXTR_ROLE_EXTERNAL_PERIMETER && $Slic3r::Config->perimeters > 1) {
|
||||||
# detect angle between last and first segment
|
# detect angle between last and first segment
|
||||||
# the side depends on the original winding order of the polygon (left for contours, right for holes)
|
# the side depends on the original winding order of the polygon (left for contours, right for holes)
|
||||||
my @points = $was_clockwise ? (-2, 1) : (1, -2);
|
my @points = $was_clockwise ? (-2, 1) : (1, -2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user