Explorar o código

Let the CubeTextureLoader use the loading manager.

Actually use the loading manager in the CubeTextureLoader by passing it
to the internal ImageLoader.
Raoul v. R %!s(int64=9) %!d(string=hai) anos
pai
achega
a0699b783e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/loaders/CubeTextureLoader.js

+ 1 - 1
src/loaders/CubeTextureLoader.js

@@ -16,7 +16,7 @@ THREE.CubeTextureLoader.prototype = {
 
 		var texture = new THREE.CubeTexture( [] );
 
-		var loader = new THREE.ImageLoader();
+		var loader = new THREE.ImageLoader( this.manager );
 		loader.setCrossOrigin( this.crossOrigin );
 		loader.setPath( this.path );