fix: rotate models right side up in (pre)view

feat/type-attributes
Tomáš Mládek 2023-01-24 19:28:58 +01:00
parent 042b207e0b
commit 1539860da8
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@
mesh.geometry.applyMatrix4(
new THREE.Matrix4().makeTranslation(-middle.x, -middle.y, -middle.z)
);
mesh.geometry.applyMatrix4(
new THREE.Matrix4().makeRotationX(-Math.PI / 2)
);
const largestDimension = Math.max(
geometry.boundingBox.max.x,