Skip to content
Snippets Groups Projects
Commit ef5c51c5 authored by johnshaughnessy's avatar johnshaughnessy
Browse files

Don't call resolveMedia on the src passed into loadGLTF.

parent 00348205
No related branches found
No related tags found
No related merge requests found
......@@ -221,13 +221,9 @@ async function resolveGLTFUri(gltfProperty, basePath) {
}
async function loadGLTF(src, token, contentType, preferredTechnique, onProgress) {
const resolved = await resolveMedia(src, token);
const raw = resolved.raw;
const origin = resolved.origin;
contentType = contentType || resolved.contentType;
const basePath = THREE.LoaderUtils.extractUrlBase(origin);
const basePath = THREE.LoaderUtils.extractUrlBase(src);
let gltfUrl = raw;
let gltfUrl = src;
let fileMap;
if (contentType.includes("model/gltf+zip") || contentType.includes("application/x-zip-compressed")) {
......
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