@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/dist/lib-cjs/api/classes/variant.js +1 -0
- package/dist/lib-cjs/api/classes/variant.js.map +1 -1
- package/dist/lib-cjs/api/manager/gltfExportManager.js +6 -0
- package/dist/lib-cjs/api/manager/gltfExportManager.js.map +1 -1
- package/dist/lib-cjs/buildinfo.json +1 -1
- package/dist/lib-cjs/commonjs.tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/api/classes/variant.ts +1 -0
- package/src/api/manager/gltfExportManager.ts +6 -0
package/package.json
CHANGED
|
@@ -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 };
|