Explorar o código

Updated builds.

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
bffb56912f
Modificáronse 2 ficheiros con 181 adicións e 180 borrados
  1. 5 10
      build/three.js
  2. 176 170
      build/three.min.js

+ 5 - 10
build/three.js

@@ -27487,24 +27487,19 @@ THREE.ImageUtils = {
 
                     request.open( 'GET', url, true );
                     request.responseType = "arraybuffer";
-                    request.onload = function() {
-                        if ( this.status === 200 ) {
+                    
+                    request.addEventListener( 'load', function ( event ) {
+
                             var imageData = THREE.ImageUtils.decodeTGA( this.response );
 
                             if ( imageData ) {
                                 texture.image = imageData;
                                 texture.sourceFile = url;
                                 texture.needsUpdate = true;
-                                
-                                return texture;
-                            }
 
-                        }
-                    };
-                    
-                    request.addEventListener( 'load', function ( event ) {
+                                if ( onLoad ) onLoad( texture );
 
-                            if ( onLoad ) onLoad( texture );
+                            }
 
 			}, false );
                         

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 176 - 170
build/three.min.js


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio