fix printpoint bug
This commit is contained in:
parent
820da24e60
commit
9707283cd8
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue