@babylonjs/serializers 8.34.1 → 8.36.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.
@@ -1,4 +1,4 @@
1
- import type { IBufferView, IAccessor, INode, IScene, IMesh, IMaterial, ITexture, IImage, ISampler, IAnimation, IMeshPrimitive, IGLTF, ITextureInfo, ISkin, ICamera, ImageMimeType } from "babylonjs-gltf2interface";
1
+ import type { IBufferView, IAccessor, INode, IScene, IMesh, IMaterial, ITexture, IImage, ISampler, IAnimation, IMeshPrimitive, IGLTF, ITextureInfo, ISkin, ICamera } from "babylonjs-gltf2interface";
2
2
  import type { Nullable } from "@babylonjs/core/types.js";
3
3
  import type { Node } from "@babylonjs/core/node.js";
4
4
  import type { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture.js";
@@ -26,10 +26,7 @@ export declare class GLTFExporter {
26
26
  readonly _textures: ITexture[];
27
27
  readonly _babylonScene: Scene;
28
28
  readonly _imageData: {
29
- [fileName: string]: {
30
- data: ArrayBuffer;
31
- mimeType: ImageMimeType;
32
- };
29
+ [fileName: string]: Blob;
33
30
  };
34
31
  /**
35
32
  * Baked animation sample rate
@@ -393,7 +393,7 @@ export class GLTFExporter {
393
393
  container.files[glTFBinFile] = bin;
394
394
  if (this._imageData) {
395
395
  for (const image in this._imageData) {
396
- container.files[image] = new Blob([this._imageData[image].data], { type: this._imageData[image].mimeType });
396
+ container.files[image] = this._imageData[image];
397
397
  }
398
398
  }
399
399
  return container;