fix printpoint bug

This commit is contained in:
bakedpotatolord 2025-05-15 09:52:37 -06:00
commit 9707283cd8

View file

@ -703,6 +703,11 @@ class OpOutline extends CamOp {
cutdir = !cutdir;
}
// printpoint becomes NaN in engine mode. not sure why but this fixes it
if(Object.values(printPoint).some(v=>Number.isNaN(v))){
printPoint = newPoint(0,0,0);
}
for (let slice of sliceOut) {
let polys = [], t = [], c = [];
let lines =POLY.flatten(slice.camLines)