diff --git a/docs/api/loaders/ObjectLoader.html b/docs/api/loaders/ObjectLoader.html index dd2dd3d4bee2db0181273e81397cb5ed67763fad..7b65a1b6a38ddc0e00fa55d2399f6ec4691a591d 100644 --- a/docs/api/loaders/ObjectLoader.html +++ b/docs/api/loaders/ObjectLoader.html @@ -213,12 +213,12 @@
-[page:String value] — The crossOrigin string to implement CORS for loading the url from a different domain that allows CORS.
-
[page:String value] — The base path or URL from which textures will be loaded.
diff --git a/src/loaders/ObjectLoader.js b/src/loaders/ObjectLoader.js
index 9001f468ef8e2b5b1053545021bdf9ff13afbbe2..6afaaebecb17d72820e2f8a264060e2faaa0c1bc 100644
--- a/src/loaders/ObjectLoader.js
+++ b/src/loaders/ObjectLoader.js
@@ -112,12 +112,14 @@ Object.assign( ObjectLoader.prototype, {
setTexturePath: function ( value ) {
this.texturePath = value;
+ return this;
},
setCrossOrigin: function ( value ) {
this.crossOrigin = value;
+ return this;
},