diff --git a/index.html b/index.html
index 58a5825..9bdd876 100644
--- a/index.html
+++ b/index.html
@@ -389,6 +389,7 @@
Examples
a.style.display = 'none';
document.body.appendChild(a);
a.click();
+
document.body.removeChild(a);
URL.revokeObjectURL(u);
});
diff --git a/model-loader.js b/model-loader.js
index f2a2f9d..a3614a4 100644
--- a/model-loader.js
+++ b/model-loader.js
@@ -36,33 +36,6 @@ const _filename2Ext = filename => {
const _patchModel = model => {
const saved = THREE.SkeletonUtils.clone(model.scene);
- /* const sceneSkinnedMeshes = [];
- model.scene.traverse(o => {
- if (o.isSkinnedMesh) {
- sceneSkinnedMeshes.push(o);
- }
- });
-
- const savedSkinnedMeshes = [];
- model.scene.traverse(o => {
- if (o.isSkinnedMesh) {
- savedSkinnedMeshes.push(o);
- }
- });
-
- const skeletonCache = new Map();
- for (let i = 0; i < sceneSkinnedMeshes.length; i++) {
- const sceneSkinnedMesh = sceneSkinnedMeshes[i];
- const savedSkinnedMesh = savedSkinnedMeshes[i];
- let skeletonClone = skeletonCache.get(sceneSkinnedMesh.skeleton);
- if (!skeletonClone) {
- skeletonClone = sceneSkinnedMesh.skeleton.clone(true);
- skeletonCache.set(sceneSkinnedMesh.skeleton, skeletonClone);
- }
- savedSkinnedMesh.skeleton = skeletonClone;
- }
- model.saved = saved; */
-
model.export = () => new Promise((accept, reject) => {
new THREE.GLTFExporter().parse(saved, ab => {
accept(ab);