fix obj autoscale

This commit is contained in:
Stewart Allen 2021-12-12 19:54:55 -05:00
commit 29026ecb64

View file

@ -331,7 +331,7 @@ console.log/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
// onshape exports obj in meters by default :/
let maxv = 0;
for (let i=0; i<vertices.length; i++) {
maxv = Math.max(Math.abs(vertices[i]));
maxv = Math.max(maxv,Math.abs(vertices[i]));
}
if (maxv < 1) {
for (let i=0; i<vertices.length; i++) {