@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
|
|
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
|
package/glTF/2.0/glTFExporter.js
CHANGED
|
@@ -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] =
|
|
396
|
+
container.files[image] = this._imageData[image];
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
return container;
|