fix loading mesh

This commit is contained in:
casperlamboo 2018-01-17 23:53:40 +01:00
parent b562d3c2e2
commit 082329b810

View File

@ -120,6 +120,7 @@ class Interface extends React.Component {
showFullScreen: false,
isSlicing: false,
error: null,
mesh: null,
objectDimensions: '0x0x0mm',
popover: { open: false, element: null },
openUrlDialog: { open: false, url: '' }
@ -154,6 +155,8 @@ class Interface extends React.Component {
placeOnGround(scene.mesh);
this.calculateDimensions();
scene.render();
this.setState({ mesh });
}
componentWillUnmount() {