Skip to content

Commit 52df393

Browse files
committed
ImageUtils: Fixed CanvasRenderer breakage.
1 parent 9cff15c commit 52df393

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/extras/ImageUtils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ THREE.ImageUtils = {
1616
loader.setCrossOrigin( this.crossOrigin );
1717

1818
var texture = loader.load( url, onLoad, undefined, onError );
19-
texture.mapping = mapping;
19+
20+
if ( mapping ) texture.mapping = mapping;
2021

2122
return texture;
2223

@@ -30,7 +31,8 @@ THREE.ImageUtils = {
3031
loader.setCrossOrigin( this.crossOrigin );
3132

3233
var texture = loader.load( urls, onLoad, undefined, onError );
33-
texture.mapping = mapping;
34+
35+
if ( mapping ) texture.mapping = mapping;
3436

3537
return texture;
3638

0 commit comments

Comments
 (0)