Skip to content
Snippets Groups Projects
Commit 8e3371be authored by netpro2k's avatar netpro2k
Browse files

Remove debugging slowdown on gltf-model-plus

parent 6cc844e5
No related branches found
No related tags found
No related merge requests found
...@@ -191,15 +191,17 @@ function cachedLoadGLTF(src, basePath, preferredTechnique, onProgress) { ...@@ -191,15 +191,17 @@ function cachedLoadGLTF(src, basePath, preferredTechnique, onProgress) {
gltfLoader.load(src, resolve, onProgress, reject); gltfLoader.load(src, resolve, onProgress, reject);
}); });
} }
return GLTFCache[src] return (
.then(gltf => { GLTFCache[src]
return new Promise((resolve, reject) => { // .then(gltf => {
window.setTimeout(() => { // return new Promise((resolve, reject) => {
resolve(gltf); // window.setTimeout(() => {
}, 2000); // resolve(gltf);
}); // }, 2000);
}) // });
.then(cloneGltf); // })
.then(cloneGltf)
);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment