diff --git a/script.js b/script.js index bd4b2b1..782dce2 100644 --- a/script.js +++ b/script.js @@ -7,8 +7,8 @@ const renderer = new THREE.WebGLRenderer({ }); // Set up the camera controls -const controls = new THREE.OrbitControls(camera, renderer.domElement); -controls = new THREE.OrbitControls(camera, renderer.domElement); +const OrbitControls = THREE['OrbitControls']; +const controls = new OrbitControls(camera, renderer.domElement); // Add some basic lighting const ambientLight = new THREE.AmbientLight(0x444444); scene.add(ambientLight);