mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 11:03:48 +01:00
fix raf
This commit is contained in:
parent
e8d474fada
commit
1b195e2fe3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user