fix hole detection clobbering slice selection in outline when roughing enabled

This commit is contained in:
Stewart Allen 2020-10-27 21:32:07 -04:00
commit 4e9955b7a2

View file

@ -261,7 +261,7 @@
function holes(slices, offset, onupdate) { function holes(slices, offset, onupdate) {
let last; let last;
slices.reverse().forEach(function(slice,index) { slices.slice().reverse().forEach(function(slice,index) {
let holes = slice.gatherTopPolyInners([]).clone(); let holes = slice.gatherTopPolyInners([]).clone();
if (last) { if (last) {
let inter = []; let inter = [];
@ -1065,7 +1065,7 @@
if (procRough) { if (procRough) {
let selected = []; let selected = [];
selectSlices(slices, camRoughDown, CPRO.ROUGH, selected); selectSlices(slices, camRoughDown * units, CPRO.ROUGH, selected);
if (zThru) { if (zThru) {
addZThru(selected); addZThru(selected);
} }