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) {
gltfLoader.load(src, resolve, onProgress, reject);
});
}
return GLTFCache[src]
.then(gltf => {
return new Promise((resolve, reject) => {
window.setTimeout(() => {
resolve(gltf);
}, 2000);
});
})
.then(cloneGltf);
return (
GLTFCache[src]
// .then(gltf => {
// return new Promise((resolve, reject) => {
// window.setTimeout(() => {
// resolve(gltf);
// }, 2000);
// });
// })
.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