Browse Source

Delete invalid and outdated fallback (#30744)

Rafał Budzis 1 year ago
parent
commit
51355d8207
1 changed files with 1 additions and 19 deletions
  1. 1 19
      examples/jsm/exporters/GLTFExporter.js

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

@@ -1465,25 +1465,7 @@ class GLTFWriter {
 
 			} else {
 
-				if ( canvas.toDataURL !== undefined ) {
-
-					imageDef.uri = canvas.toDataURL( mimeType );
-
-				} else {
-
-					pending.push(
-
-						getToBlobPromise( canvas, mimeType )
-							.then( blob => new FileReader().readAsDataURL( blob ) )
-							.then( dataURL => {
-
-								imageDef.uri = dataURL;
-
-							} )
-
-					);
-
-				}
+				imageDef.uri = canvas.toDataURL( mimeType );
 
 			}
 

粤ICP备19079148号