2
0
Mr.doob 11 жил өмнө
parent
commit
bffb56912f
2 өөрчлөгдсөн 181 нэмэгдсэн , 180 устгасан
  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 );
                         

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 176 - 170
build/three.min.js


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно