Skip to content
Snippets Groups Projects
Commit 602590ed authored by netpro2k's avatar netpro2k
Browse files

Clean up GLTF cache on errors

parent 7e673aab
No related branches found
No related tags found
No related merge requests found
......@@ -216,6 +216,7 @@ function cachedLoadGLTF(src, basePath, contentType, preferredTechnique, onProgre
gltfLoader.load(gltfUrl, onLoad, onProgress, reject);
} catch (e) {
reject(e);
delete GLTFCache[src];
}
});
}
......
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