Browse Source

Always update textureLoader.crossOrigin from GLTFLoader

Takahiro 8 years ago
parent
commit
fa5c23ef21
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -793,7 +793,7 @@ THREE.GLTFLoader = ( function () {
 
 					}
 
-					if ( options.crossOrigin !== undefined ) textureLoader.setCrossOrigin( options.crossOrigin );
+					textureLoader.setCrossOrigin( options.crossOrigin );
 
 					textureLoader.load( resolveURL( source.uri, options.path ), function ( _texture ) {