Procházet zdrojové kódy

GLTFExporter: Cleanup. (#23385)

Don McCurdy před 4 roky
rodič
revize
55ee769dfb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      examples/jsm/exporters/GLTFExporter.js

+ 1 - 1
examples/jsm/exporters/GLTFExporter.js

@@ -1050,7 +1050,7 @@ class GLTFWriter {
 		if ( ! cache.images.has( image ) ) cache.images.set( image, {} );
 
 		const cachedImages = cache.images.get( image );
-		const mimeType = format === RGBAFormat ? 'image/png' : 'image/jpeg';
+		const mimeType = 'image/png';
 		const key = mimeType + ':flipY/' + flipY.toString();
 
 		if ( cachedImages[ key ] !== undefined ) return cachedImages[ key ];

粤ICP备19079148号