Parcourir la source

ObjectLoader setter methods chaining

Takahiro il y a 7 ans
Parent
commit
053dd1f9ae
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/loaders/ObjectLoader.js

+ 2 - 0
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;
 
 	},