0
0
mirror of https://github.com/Doodle3D/Doodle3D-Slicer.git synced 2025-05-11 11:43:23 +02:00

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

@ -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) => {