We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc4ef55 commit 51355d8Copy full SHA for 51355d8
examples/jsm/exporters/GLTFExporter.js
@@ -1465,25 +1465,7 @@ class GLTFWriter {
1465
1466
} else {
1467
1468
- if ( canvas.toDataURL !== undefined ) {
1469
-
1470
- imageDef.uri = canvas.toDataURL( mimeType );
1471
1472
- } else {
1473
1474
- pending.push(
1475
1476
- getToBlobPromise( canvas, mimeType )
1477
- .then( blob => new FileReader().readAsDataURL( blob ) )
1478
- .then( dataURL => {
1479
1480
- imageDef.uri = dataURL;
1481
1482
- } )
1483
1484
- );
1485
1486
- }
+ imageDef.uri = canvas.toDataURL( mimeType );
1487
1488
}
1489
0 commit comments