@combeenation/3d-viewer 9.2.1-alpha1 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@combeenation/3d-viewer",
3
- "version": "9.2.1-alpha1",
3
+ "version": "9.3.0",
4
4
  "description": "Combeenation 3D Viewer",
5
5
  "homepage": "https://github.com/Combeenation/3d-viewer#readme",
6
6
  "bugs": {
@@ -689,6 +689,7 @@ export class Variant extends Parameterizable {
689
689
  this.viewer.scene.addCamera(camera);
690
690
  });
691
691
  this.assetContainer.materials.forEach(material => this.viewer.scene.materials.push(material));
692
+ this.assetContainer.skeletons.forEach(skeleton => this.viewer.scene.skeletons.push(skeleton));
692
693
  this.broadcastEvent(Event.ASSET_LOADING_END, this);
693
694
  resolve(this);
694
695
  },
@@ -165,6 +165,12 @@ export class GltfExportManager {
165
165
  this.setUniqueMeshNames(copiedScene);
166
166
  // get rid of negative scalings and morph targets, since iOS can't handle it in the QuickLook app
167
167
  bakeGeometryOfAllMeshes(copiedScene);
168
+ // certain devices can't load models with skeletons, just remove them since animations are not supported in the AR
169
+ // scene anyway
170
+ while (copiedScene.skeletons.length) {
171
+ const skeleton = copiedScene.skeletons.pop();
172
+ skeleton!.dispose();
173
+ }
168
174
  }
169
175
 
170
176
  return { scene: copiedScene, sceneCopied: true };