fix for retraction speed set to 0

This commit is contained in:
Stewart Allen 2021-06-18 19:46:25 -04:00
commit a133236a0a
2 changed files with 3 additions and 3 deletions

View file

@ -334,7 +334,7 @@
let minx = Infinity, maxx = -Infinity;
let peek = 0;
for (let slice of slices) {
if (slice.groups.length && peek++ < 5) {
if (slice.tops.length && peek++ < 5) {
for (let poly of slice.topPolys()) {
minx = Math.min(minx, poly.bounds.minx);
maxx = Math.max(maxx, poly.bounds.maxx);