Skip to content

Commit

Permalink
fix mimeType
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Sep 6, 2022
1 parent 86d73f2 commit 9e885a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/jsm/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1325,10 +1325,11 @@ class GLTFWriter {
if ( typeof CompressedTexture !== 'undefined' && map instanceof CompressedTexture ) {

modifiedMap = this.buildReadableTexture( map, options.maxTextureSize );
modifiedMap.userData.mimeType = 'image/png';

}

let mimeType = map.userData.mimeType;
let mimeType = modifiedMap.userData.mimeType;

if ( mimeType === 'image/webp' ) mimeType = 'image/png';

Expand Down

0 comments on commit 9e885a5

Please sign in to comment.