未验证 提交 4694dcf5 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #14473 from Mugen87/dev1

TGALoader: Added .setPath()
......@@ -22,6 +22,7 @@ THREE.TGALoader.prototype = {
var loader = new THREE.FileLoader( this.manager );
loader.setResponseType( 'arraybuffer' );
loader.setPath( this.path );
loader.load( url, function ( buffer ) {
......@@ -535,6 +536,13 @@ THREE.TGALoader.prototype = {
return canvas;
},
setPath: function ( value ) {
this.path = value;
return this;
}
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册