Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Jul 26, 2023
1 parent b36098b commit 9570207
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/jsm/exporters/USDZExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

} );
Expand Down
3 changes: 2 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand All @@ -82,7 +83,7 @@ class MockImage extends EventTarget {
}

async getArrayBuffer() {

Check failure on line 85 in src/utils.js

View workflow job for this annotation

GitHub Actions / Lint testing

Block must be padded by blank lines
console.log(this.url, this.blob);
// console.log(this.url, this.blob);
const arrayBuffer = await this.blob.arrayBuffer();
return arrayBuffer;

Check failure on line 88 in src/utils.js

View workflow job for this annotation

GitHub Actions / Lint testing

Block must be padded by blank lines
}
Expand Down

0 comments on commit 9570207

Please sign in to comment.