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