fix: rotate models right side up in (pre)view
parent
042b207e0b
commit
1539860da8
|
@ -47,6 +47,9 @@
|
||||||
mesh.geometry.applyMatrix4(
|
mesh.geometry.applyMatrix4(
|
||||||
new THREE.Matrix4().makeTranslation(-middle.x, -middle.y, -middle.z)
|
new THREE.Matrix4().makeTranslation(-middle.x, -middle.y, -middle.z)
|
||||||
);
|
);
|
||||||
|
mesh.geometry.applyMatrix4(
|
||||||
|
new THREE.Matrix4().makeRotationX(-Math.PI / 2)
|
||||||
|
);
|
||||||
|
|
||||||
const largestDimension = Math.max(
|
const largestDimension = Math.max(
|
||||||
geometry.boundingBox.max.x,
|
geometry.boundingBox.max.x,
|
||||||
|
|
Loading…
Reference in New Issue