diff --git a/src/components/gltf-model-plus.js b/src/components/gltf-model-plus.js index c12a0cad6cac31825aed17ddde7659e0aab0b75e..304bd1e31c2509cdc03ce1c6a15701d56ec9e160 100644 --- a/src/components/gltf-model-plus.js +++ b/src/components/gltf-model-plus.js @@ -353,8 +353,7 @@ AFRAME.registerComponent("gltf-model-plus", { GLTFCache[src] = loadGLTF(src, this.preferredTechnique); } - const cachedModel = await GLTFCache[src]; - const model = cloneGltf(cachedModel); + const model = cloneGltf(await GLTFCache[src]); // If we started loading something else already // TODO: there should be a way to cancel loading instead