fix component will unmount

This commit is contained in:
casperlamboo 2018-01-30 12:01:37 +01:00
parent 07f8255a37
commit 9cc64f44a5

View File

@ -169,7 +169,7 @@ class Interface extends React.Component {
}
componentWillUnmount() {
const { scene: { editorControls, mesh: { material } }, renderer } = this.state;
const { scene: { editorControls, mesh: { material }, renderer } } = this.state;
editorControls.dispose();
material.dispose();
renderer.dispose();