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

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

No files matched your search

+3
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]);
}