Describe the bug
When loading a GLTF or other files through the three graphics package.
The function that queries the cache, supplies the cached binary array to this.gltfLoader.load instead of the url.
e.g.
public gltf(url: string): Promise<GLTF> {
// if the cache has a value this resolves to the payload and key becomes a big byte array
const key = this.cache.get(url)
url = key ? key : url
return new Promise(resolve => {
this.gltfLoader.load(url, (gltf: GLTF) => {
resolve(gltf)
})
})
}
This means a second call to load the same file, hits an exception when it gets a byte array instead of a url string.
Describe the bug
When loading a GLTF or other files through the three graphics package.
The function that queries the cache, supplies the cached binary array to
this.gltfLoader.loadinstead of the url.e.g.
This means a second call to load the same file, hits an exception when it gets a byte array instead of a url string.