提交 bffb5691 编写于 作者: M Mr.doob

Updated builds.

上级 1778380b
...@@ -27487,24 +27487,19 @@ THREE.ImageUtils = { ...@@ -27487,24 +27487,19 @@ THREE.ImageUtils = {
request.open( 'GET', url, true ); request.open( 'GET', url, true );
request.responseType = "arraybuffer"; request.responseType = "arraybuffer";
request.onload = function() {
if ( this.status === 200 ) { request.addEventListener( 'load', function ( event ) {
var imageData = THREE.ImageUtils.decodeTGA( this.response ); var imageData = THREE.ImageUtils.decodeTGA( this.response );
if ( imageData ) { if ( imageData ) {
texture.image = imageData; texture.image = imageData;
texture.sourceFile = url; texture.sourceFile = url;
texture.needsUpdate = true; texture.needsUpdate = true;
return texture;
}
} if ( onLoad ) onLoad( texture );
};
request.addEventListener( 'load', function ( event ) {
if ( onLoad ) onLoad( texture ); }
}, false ); }, false );
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册