Fixed regression preventing arcs to be generated at all (center detection is still buggy)

This commit is contained in:
Alessandro Ranellucci 2012-06-07 19:53:27 +02:00
parent c0c53c4397
commit 0c4b112718
3 changed files with 8 additions and 2 deletions

View file

@ -28,6 +28,8 @@ sub split_at {
$point = Slic3r::Point->new($point);
$self->deserialize;
# find index of point
my $i = -1;
for (my $n = 0; $n <= $#{$self->polygon}; $n++) {
@ -50,6 +52,7 @@ sub split_at {
sub split_at_first_point {
my $self = shift;
$self->deserialize;
return $self->split_at($self->polygon->[0]);
}