Bugfix: wrong inwards moves were calculated for 2+ copies because ExtrusionLoop objects were modified in place. Includes regression test. #1842
This commit is contained in:
parent
b4ac63d749
commit
5ce4de0544
2 changed files with 14 additions and 1 deletions
lib/Slic3r
|
@ -188,6 +188,10 @@ sub extrude {
|
|||
sub extrude_loop {
|
||||
my ($self, $loop, $description) = @_;
|
||||
|
||||
# make a copy; don't modify the orientation of the original loop object otherwise
|
||||
# next copies (if any) would not detect the correct orientation
|
||||
$loop = $loop->clone;
|
||||
|
||||
# extrude all loops ccw
|
||||
my $was_clockwise = $loop->make_counter_clockwise;
|
||||
my $polygon = $loop->polygon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue