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

*Loader: Return this in set*.

上级 299a6161
......@@ -126,6 +126,7 @@ Object.assign( THREE.CompressedTextureLoader.prototype, {
setPath: function ( value ) {
this.path = value;
return this;
}
......
......@@ -53,12 +53,14 @@ Object.assign( THREE.CubeTextureLoader.prototype, {
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
return this;
},
setPath: function ( value ) {
this.path = value;
return this;
}
......
......@@ -44,12 +44,14 @@ Object.assign( THREE.ImageLoader.prototype, {
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
return this;
},
setPath: function ( value ) {
this.path = value;
return this;
}
......
......@@ -37,12 +37,14 @@ Object.assign( THREE.TextureLoader.prototype, {
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
return this;
},
setPath: function ( value ) {
this.path = value;
return this;
}
......
......@@ -103,18 +103,21 @@ Object.assign( THREE.XHRLoader.prototype, {
setPath: function ( value ) {
this.path = value;
return this;
},
setResponseType: function ( value ) {
this.responseType = value;
return this;
},
setWithCredentials: function ( value ) {
this.withCredentials = value;
return this;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册