未验证 提交 82397191 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #13950 from takahirox/ObjectLoaderMethodChaining

ObjectLoader method chaining
......@@ -213,12 +213,12 @@
</ul>
</p>
<h3>[method:null setCrossOrigin]( [param:String value] )</h3>
<h3>[method:ObjectLoader setCrossOrigin]( [param:String value] )</h3>
<p>
[page:String value] — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
</p>
<h3>[method:null setTexturePath]( [param:String value] )</h3>
<h3>[method:ObjectLoader setTexturePath]( [param:String value] )</h3>
<p>
[page:String value] — The base path or URL from which textures will be loaded.<br /><br />
......
......@@ -112,12 +112,14 @@ Object.assign( ObjectLoader.prototype, {
setTexturePath: function ( value ) {
this.texturePath = value;
return this;
},
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
return this;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册