shx-3d-render
parent
5f0d3520df
commit
8b120e810e
|
@ -124,7 +124,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
import("{{ 'three-js/loaders/STLLoader.js' | asset_url }}").then((module) => {
|
||||
import("{{ 'tjs-STLLoader.js' | asset_url }}").then((module) => {
|
||||
tJS.addons.STLLoader = module.STLLoader;
|
||||
tJS.loadedAddons++;
|
||||
|
||||
|
@ -135,7 +135,7 @@
|
|||
if(!threeJSisLoading && !threeJSloaded) {
|
||||
// load threejs
|
||||
let script = document.createElement('script');
|
||||
script.src = "{{ 'three-js/three.module.min.js' | asset_url }}";
|
||||
script.src = "{{ 'tjs-three.module.min.js' | asset_url }}";
|
||||
script.id = 'threejs-script';
|
||||
script.type = "module";
|
||||
document.head.appendChild(script);
|
||||
|
@ -144,7 +144,7 @@
|
|||
threeJSloaded = true;
|
||||
console.log('threejs loaded');
|
||||
|
||||
import("{{ 'three-js/three.module.min.js' | asset_url }}").then(THREE => {
|
||||
import("{{ 'tjs-three.module.min.js' | asset_url }}").then(THREE => {
|
||||
tJS.threeJS = THREE;
|
||||
|
||||
// calc width and height
|
||||
|
|
Loading…
Reference in New Issue