@inweb/viewer-three 27.4.5 → 27.4.6
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/viewer-three.js
CHANGED
|
@@ -38628,8 +38628,8 @@ void main() {
|
|
|
38628
38628
|
return await this.textureLoader.loadAsync(fullUrl);
|
|
38629
38629
|
} else if (image.bufferView !== undefined) {
|
|
38630
38630
|
const bufferView = this.json.bufferViews[image.bufferView];
|
|
38631
|
-
const
|
|
38632
|
-
const blob = new Blob([
|
|
38631
|
+
const { buffer } = await this.getBufferView(bufferView.byteOffset || 0, bufferView.byteLength, 5121);
|
|
38632
|
+
const blob = new Blob([buffer], { type: image.mimeType });
|
|
38633
38633
|
const url = URL.createObjectURL(blob);
|
|
38634
38634
|
const texture = await this.textureLoader.loadAsync(url);
|
|
38635
38635
|
URL.revokeObjectURL(url);
|
|
@@ -38659,6 +38659,7 @@ void main() {
|
|
|
38659
38659
|
})
|
|
38660
38660
|
);
|
|
38661
38661
|
}
|
|
38662
|
+
await this.flushBufferRequests();
|
|
38662
38663
|
await Promise.all(texturePromises);
|
|
38663
38664
|
}
|
|
38664
38665
|
loadMaterials() {
|