fix NaN for A axis
This commit is contained in:
parent
c7671da02d
commit
2f6ae9cb8f
1 changed files with 3 additions and 2 deletions
|
|
@ -76,8 +76,7 @@ CAM.export = function(print, online) {
|
||||||
scale = {
|
scale = {
|
||||||
x: 1,
|
x: 1,
|
||||||
y: 1,
|
y: 1,
|
||||||
z: 1,
|
z: 1
|
||||||
a: 1
|
|
||||||
},
|
},
|
||||||
consts = {
|
consts = {
|
||||||
box: runbox,
|
box: runbox,
|
||||||
|
|
@ -410,6 +409,8 @@ CAM.export = function(print, online) {
|
||||||
point.x *= scale.x;
|
point.x *= scale.x;
|
||||||
point.y *= scale.y;
|
point.y *= scale.y;
|
||||||
point.z *= scale.z;
|
point.z *= scale.z;
|
||||||
|
}
|
||||||
|
if (scale.a) {
|
||||||
point.a *= scale.a;
|
point.a *= scale.a;
|
||||||
}
|
}
|
||||||
if (spro.outputInvertX) point.x = -point.x;
|
if (spro.outputInvertX) point.x = -point.x;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue