From 8e3371be885e88fe8fcbc2ad27fa649dac31b9e0 Mon Sep 17 00:00:00 2001 From: netpro2k <netpro2k@gmail.com> Date: Tue, 17 Jul 2018 17:29:23 -0700 Subject: [PATCH] Remove debugging slowdown on gltf-model-plus --- src/components/gltf-model-plus.js | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/gltf-model-plus.js b/src/components/gltf-model-plus.js index b7f48bb57..a9cef5ae4 100644 --- a/src/components/gltf-model-plus.js +++ b/src/components/gltf-model-plus.js @@ -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) + ); } /** -- GitLab