mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Fixed regression preventing arcs to be generated at all (center detection is still buggy)
This commit is contained in:
parent
c0c53c4397
commit
0c4b112718
3 changed files with 8 additions and 2 deletions
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue