enable new retraction reduction path planning without danger mode

This commit is contained in:
stewart allen 2021-04-28 15:17:20 -04:00
commit c1ab50db30

View file

@ -568,9 +568,9 @@
if (slice.index < 0) { if (slice.index < 0) {
return false; return false;
} }
if (opt.danger) { // if (opt.danger) {
return retractRequired(p1, p2); return retractRequired(p1, p2);
} // }
let int = false; let int = false;
POLY.flatten(slice.topPolys().clone(true)).forEach(function(poly) { POLY.flatten(slice.topPolys().clone(true)).forEach(function(poly) {
if (!int) poly.forEachSegment(function(s1, s2) { if (!int) poly.forEachSegment(function(s1, s2) {