diff --git a/examples/jsm/exporters/USDZExporter.js b/examples/jsm/exporters/USDZExporter.js index 3ea06ff4688920..ab2fecb9ffe55b 100644 --- a/examples/jsm/exporters/USDZExporter.js +++ b/examples/jsm/exporters/USDZExporter.js @@ -78,7 +78,8 @@ class USDZExporter { const texture = textures[ id ]; - console.log (texture); + // HACK using custom data type to pass through texture data. + // We should actually respect the texture file type here, besides not doing this at all. if (texture.source.data.hasArrayBuffer) { files[ `textures/Texture_${ id }.png` ] = new Uint8Array( await texture.source.data.getArrayBuffer() ); continue; diff --git a/examples/jsm/loaders/GLTFLoader.js b/examples/jsm/loaders/GLTFLoader.js index c8c3e079c07945..aa1e73e5d7a140 100644 --- a/examples/jsm/loaders/GLTFLoader.js +++ b/examples/jsm/loaders/GLTFLoader.js @@ -3164,7 +3164,7 @@ class GLTFParser { } - console.log("Loading texture", sourceURI, loader) + // console.log("Loading texture", sourceURI, loader) loader.load( LoaderUtils.resolveURL( sourceURI, options.path ), onLoad, undefined, reject ); } ); diff --git a/src/utils.js b/src/utils.js index c21f91c9fe24c7..4736f206e30adf 100644 --- a/src/utils.js +++ b/src/utils.js @@ -64,6 +64,7 @@ function getTypedArray( type, buffer ) { } +// HACK Mock data structure to hold image bytes to pass through to exporters class MockImage extends EventTarget { constructor( name ) { @@ -82,7 +83,7 @@ class MockImage extends EventTarget { } async getArrayBuffer() { - console.log(this.url, this.blob); + // console.log(this.url, this.blob); const arrayBuffer = await this.blob.arrayBuffer(); return arrayBuffer; }