Fixed regression causing fatal errors. #429

This commit is contained in:
Alessandro Ranellucci 2012-06-09 15:53:14 +02:00
parent 0c4b112718
commit 62bd33a766
2 changed files with 2 additions and 7 deletions

View file

@ -5,7 +5,7 @@ use Moo;
has 'polygon' => (
is => 'rw',
required => 1,
handles => [qw(is_printable nearest_point_to)],
handles => [qw(is_printable nearest_point_to reverse)],
);
# see EXTR_ROLE_* constants in ExtrusionPath.pm

View file

@ -14,7 +14,7 @@ use Slic3r::Geometry qw(PI X Y epsilon deg2rad rotate_points);
has 'polyline' => (
is => 'rw',
required => 1,
handles => [qw(merge_continuous_lines lines length)],
handles => [qw(merge_continuous_lines lines length reverse)],
);
# this integer represents the vertical thickness of the extrusion
@ -98,11 +98,6 @@ sub endpoints {
return ($self->points->[0], $self->points->[-1]);
}
sub reverse {
my $self = shift;
@{$self->points} = reverse @{$self->points};
}
sub is_printable { 1 }
sub split_at_acute_angles {