Procházet zdrojové kódy

Always update textureLoader.crossOrigin from GLTFLoader

Takahiro před 8 roky
rodič
revize
fa5c23ef21
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 ) {