提交 302ac826 编写于 作者: P Pontus Leitzler

Update XHRLoader.js

上级 77d80936
......@@ -45,7 +45,11 @@ THREE.XHRLoader.prototype = {
THREE.Cache.add( url, response );
if ( onLoad ) onLoad( response );
if ( this.status == 200 && this.readyState == 4 ) {
if ( onLoad ) onLoad( response );
} else {
if ( onError ) onError( event );
};
scope.manager.itemEnd( url );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册