mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-02 16:59:48 +02: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