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

Merge pull request #12887 from takahirox/MethodChaining

Enable LoadingManager and GLTFLoader Method chaining
......@@ -57,12 +57,14 @@ THREE.GLTFLoader = ( function () {
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
return this;
},
setPath: function ( value ) {
this.path = value;
return this;
},
......
......@@ -83,6 +83,7 @@ function LoadingManager( onLoad, onProgress, onError ) {
this.setURLModifier = function ( transform ) {
urlModifier = transform;
return this;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册