Fix ldd loader imports

This commit is contained in:
Aaron Kimbre 2022-01-26 19:09:02 -06:00
parent ac835de53b
commit 2a5fad3c87

View File

@ -29,11 +29,10 @@
{% endif %} {% endif %}
</div> </div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.5.0/jszip.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip-utils/0.1.0/jszip-utils.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/super-three@0.116.0/build/three.min.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/super-three@0.116.0/build/three.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/super-three@0.116.0/examples/js/controls/OrbitControls.js"></script> <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/super-three@0.116.0/examples/js/controls/OrbitControls.js"></script>
<script type="text/javascript" src="{{ url_for('static', filename='lddviewer/base64-binary.js') }}"></script> <script type="text/javascript" src="{{ url_for('static', filename='lddviewer/base64-binary.js') }}"></script>
{% if config.ALLOW_ANALYTICS %} {% if config.ALLOW_ANALYTICS %}
@ -60,8 +59,8 @@
{% endif %} {% endif %}
<script type='module'> <script type='module'>
import {MTLLoader} from 'https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/jsm/loaders/MTLLoader.js' import {MTLLoader} from 'https://cdn.jsdelivr.net/npm/super-three@0.116.0/examples/jsm/loaders/MTLLoader.js'
import {OBJLoader} from 'https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/jsm/loaders/OBJLoader.js' import {OBJLoader} from 'https://cdn.jsdelivr.net/npm/super-three@0.116.0/examples/jsm/loaders/OBJLoader.js'
//Three.js stuff //Three.js stuff
const scene = new THREE.Scene(); const scene = new THREE.Scene();
let cammatr = new THREE.Matrix4(); let cammatr = new THREE.Matrix4();
@ -293,7 +292,6 @@
class Scene{ class Scene{
//partially done - need zip file handling
constructor(){ constructor(){
this.Bricks = [] this.Bricks = []
this.Scenecamera = [] this.Scenecamera = []