浏览代码

Always update textureLoader.crossOrigin from GLTFLoader

Takahiro 8 年之前
父节点
当前提交
fa5c23ef21
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 ) {
 					textureLoader.load( resolveURL( source.uri, options.path ), function ( _texture ) {