mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-31 09:02:53 +00:00
Optimization: Remove useless calls to union()
This commit is contained in:
@@ -150,7 +150,7 @@ sub _merge_loops {
|
||||
# of the loops, since the Orientation() function provided by Clipper
|
||||
# would do the same, thus repeating the calculation
|
||||
$slices = ($area[$i] >= 0)
|
||||
? union([ $loops->[$i], @$slices ])
|
||||
? [ $loops->[$i], @$slices ]
|
||||
: diff($slices, [$loops->[$i]]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user