diff --git a/lib/Slic3r/Layer/BridgeDetector.pm b/lib/Slic3r/Layer/BridgeDetector.pm index ecfbb59c8..ee87846d1 100644 --- a/lib/Slic3r/Layer/BridgeDetector.pm +++ b/lib/Slic3r/Layer/BridgeDetector.pm @@ -8,7 +8,7 @@ use Slic3r::Geometry::Clipper qw(intersection_pl intersection_ex); has 'lower_slices' => (is => 'rw', required => 1); # ExPolygons or ExPolygonCollection has 'perimeter_flow' => (is => 'rw', required => 1); has 'infill_flow' => (is => 'rw', required => 1); -has 'resolution' => => (is => 'rw', default => sub { PI/36 }); +has 'resolution' => (is => 'rw', default => sub { PI/36 }); sub detect_angle { my ($self, $expolygon) = @_; diff --git a/lib/Slic3r/Polygon.pm b/lib/Slic3r/Polygon.pm index 57387d93e..873cf5923 100644 --- a/lib/Slic3r/Polygon.pm +++ b/lib/Slic3r/Polygon.pm @@ -71,13 +71,13 @@ sub clip_as_polyline { # we would get two consecutive polylines instead of a single one, so we use this ugly hack to # recombine them back into a single one in order to trigger the @edges == 2 logic below. # This needs to be replaced with something way better. - if ($polylines[0][-1]->coincides_with($self_pl->[-1]) && $polylines[-1][0]->coincides_width($self_pl->[0])) { + if ($polylines[0][-1]->coincides_with($self_pl->[-1]) && $polylines[-1][0]->coincides_with($self_pl->[0])) { my $p = $polylines[0]->clone; $p->pop_back; $p->append(@{$polylines[-1]}); return [$p]; } - if ($polylines[0][0]->coincides_with($self_pl->[0]) && $polylines[-1][-1]->coincides_width($self_pl->[-1])) { + if ($polylines[0][0]->coincides_with($self_pl->[0]) && $polylines[-1][-1]->coincides_with($self_pl->[-1])) { my $p = $polylines[-1]->clone; $p->pop_back; $p->append(@{$polylines[0]});