change order of axis in dimensions preview

This commit is contained in:
Casper Lamboo 2018-02-19 13:48:55 +01:00
parent 120b49dfb7
commit 793f8100fb

View File

@ -311,7 +311,7 @@ class Interface extends React.Component {
calculateDimensions = () => {
const { scene: { mesh } } = this.state;
const { x, y, z } = new THREE.Box3().setFromObject(mesh).getSize();
this.setState({ objectDimensions: `${Math.round(x)}x${Math.round(y)}x${Math.round(z)}mm` });
this.setState({ objectDimensions: `${Math.round(y)}x${Math.round(z)}x${Math.round(x)}mm` });
};
onDrop = (event) => {