fix obj autoscale
This commit is contained in:
parent
7ae240290c
commit
29026ecb64
1 changed files with 1 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ console.log/** Copyright Stewart Allen <sa@grid.space> -- All Rights Reserved */
|
||||||
// onshape exports obj in meters by default :/
|
// onshape exports obj in meters by default :/
|
||||||
let maxv = 0;
|
let maxv = 0;
|
||||||
for (let i=0; i<vertices.length; i++) {
|
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) {
|
if (maxv < 1) {
|
||||||
for (let i=0; i<vertices.length; i++) {
|
for (let i=0; i<vertices.length; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue