Skip to content

Commit

Permalink
Merge pull request #20049 from Mugen87/dev51
Browse files Browse the repository at this point in the history
ColladaExporter: Fix runtime error when processing ImageBitmap.
  • Loading branch information
mrdoob authored Aug 17, 2020
2 parents 7de1e3e + a036bdb commit 0ff40ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/js/exporters/ColladaExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ THREE.ColladaExporter.prototype = {
canvas = canvas || document.createElement( 'canvas' );
ctx = ctx || canvas.getContext( '2d' );

canvas.width = image.naturalWidth;
canvas.height = image.naturalHeight;
canvas.width = image.width;
canvas.height = image.height;

ctx.drawImage( image, 0, 0 );

Expand Down
4 changes: 2 additions & 2 deletions examples/jsm/exporters/ColladaExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ ColladaExporter.prototype = {
canvas = canvas || document.createElement( 'canvas' );
ctx = ctx || canvas.getContext( '2d' );

canvas.width = image.naturalWidth;
canvas.height = image.naturalHeight;
canvas.width = image.width;
canvas.height = image.height;

ctx.drawImage( image, 0, 0 );

Expand Down

0 comments on commit 0ff40ec

Please sign in to comment.