mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-14 03:02:52 +02:00
Bugfix: Clipper error occurred under certain circumstances
This commit is contained in:
1 parent
b03afc7f1c
commit
133f3a0495
2 files changed
+10
-4
No files matched your search
@@ -55,8 +55,14 @@ sub offset {
|
||||
|
||||
sub safety_offset {
|
||||
my $self = shift;
|
||||
|
||||
# we're offsetting contour and holes separately
|
||||
# because Clipper doesn't return polygons in the same order as
|
||||
# we feed them to it
|
||||
|
||||
return (ref $self)->new(
|
||||
@{ Slic3r::Geometry::Clipper::safety_offset([@$self]) },
|
||||
$self->contour->safety_offset,
|
||||
@{ Slic3r::Geometry::Clipper::safety_offset([$self->holes]) },
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user