mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-12-23 03:23:48 +01:00
fix loading mesh
This commit is contained in:
parent
b562d3c2e2
commit
082329b810
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user