Ver Fonte

Merge pull request #14553 from sean041/patch-1

HDRCubeTextureLoader: Fix usage of LoadingManager
Mr.doob há 7 anos atrás
pai
commit
755d92900f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/js/loaders/HDRCubeTextureLoader.js

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

@@ -108,7 +108,7 @@ THREE.HDRCubeTextureLoader.prototype.load = function ( type, urls, onLoad, onPro
 
 
 	function loadHDRData( i, onLoad, onProgress, onError ) {
 	function loadHDRData( i, onLoad, onProgress, onError ) {
 
 
-		var loader = new THREE.FileLoader( this.manager );
+		var loader = new THREE.FileLoader( scope.manager );
 		loader.setResponseType( 'arraybuffer' );
 		loader.setResponseType( 'arraybuffer' );
 		loader.load( urls[ i ], function ( buffer ) {
 		loader.load( urls[ i ], function ( buffer ) {