1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-27 10:35:51 +00:00

Optimization: Remove useless calls to union()

This commit is contained in:
Alessandro Ranellucci
2013-09-07 00:28:53 +02:00
parent 10ab3bbb86
commit 09684c67c2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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]]);
}