From 8279813c7a5940753b88f756a887e3a4ab58dd98 Mon Sep 17 00:00:00 2001 From: joni <johnfshaughnessy@gmail.com> Date: Thu, 19 Jul 2018 17:05:34 -0700 Subject: [PATCH] Remove code we have for debug --- src/components/gltf-model-plus.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/gltf-model-plus.js b/src/components/gltf-model-plus.js index bc8d90bc2..0b9755a4a 100644 --- a/src/components/gltf-model-plus.js +++ b/src/components/gltf-model-plus.js @@ -191,17 +191,7 @@ 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(cloneGltf); } /** -- GitLab