Bugfix: wrong inwards moves were calculated for 2+ copies because ExtrusionLoop objects were modified in place. Includes regression test.

This commit is contained in:
Alessandro Ranellucci 2014-03-24 20:01:14 +01:00
parent b4ac63d749
commit 5ce4de0544
2 changed files with 14 additions and 1 deletions
lib/Slic3r

View file

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