瀏覽代碼

HDRCubeTextureLoader: Fixed scope.

Mr.doob 6 年之前
父節點
當前提交
6c5c5744c3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/js/loaders/HDRCubeTextureLoader.js

+ 2 - 2
examples/js/loaders/HDRCubeTextureLoader.js

@@ -102,7 +102,7 @@ THREE.HDRCubeTextureLoader.prototype.load = function ( type, urls, onLoad, onPro
 	texture.generateMipmaps = ( texture.encoding !== THREE.RGBEEncoding );
 	texture.generateMipmaps = ( texture.encoding !== THREE.RGBEEncoding );
 	texture.anisotropy = 0;
 	texture.anisotropy = 0;
 
 
-	var scope = this.hdrLoader;
+	var scope = this;
 
 
 	var loaded = 0;
 	var loaded = 0;
 
 
@@ -115,7 +115,7 @@ THREE.HDRCubeTextureLoader.prototype.load = function ( type, urls, onLoad, onPro
 
 
 			loaded ++;
 			loaded ++;
 
 
-			var texData = scope._parser( buffer );
+			var texData = scope.hdrLoader._parser( buffer );
 
 
 			if ( ! texData ) return;
 			if ( ! texData ) return;