johnrobinsn commited on
Commit
817e55b
β€’
1 Parent(s): ad1a298

Break fix changed to CDN URL for OrbitControls

Browse files
Files changed (1) hide show
  1. depth_viewer.py +3 -1
depth_viewer.py CHANGED
@@ -40,6 +40,7 @@ _viewer_html = '''
40
  renderer.setSize(window.innerWidth, window.innerHeight);
41
  document.body.appendChild(renderer.domElement);
42
 
 
43
  var controls = new THREE.OrbitControls(camera, renderer.domElement);
44
 
45
  var reset = document.getElementById('reset')
@@ -98,7 +99,8 @@ _viewer_html = '''
98
 
99
  <body>
100
  <script src="https://threejs.org/build/three.min.js"></script>
101
- <script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script>
 
102
 
103
  <script id="vshader" type="x-shader/x-vertex">
104
  uniform sampler2D depth;
 
40
  renderer.setSize(window.innerWidth, window.innerHeight);
41
  document.body.appendChild(renderer.domElement);
42
 
43
+ //var controls = new THREE.OrbitControls(camera, renderer.domElement);
44
  var controls = new THREE.OrbitControls(camera, renderer.domElement);
45
 
46
  var reset = document.getElementById('reset')
 
99
 
100
  <body>
101
  <script src="https://threejs.org/build/three.min.js"></script>
102
+ <script src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/controls/OrbitControls.js"></script>
103
+ <!--script src="https://threejs.org/examples/js/controls/OrbitControls.js"></script-->
104
 
105
  <script id="vshader" type="x-shader/x-vertex">
106
  uniform sampler2D depth;