This commit is contained in:
casperlamboo 2017-12-05 14:17:43 +01:00
parent e8d474fada
commit 1b195e2fe3
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class DoodlePreview extends React.Component {
this.setState(scene);
this.editorControls = new THREE.EditorControls(scene.camera, canvas);
this.editorControls.addEventListener('change', rafOnce(scene.render));
this.editorControls.addEventListener('change', () => rafOnce(scene.render));
loadMatcapMaterial.then(scene.render);
}