Przeglądaj źródła

ObjectLoader setter methods chaining

Takahiro 7 lat temu
rodzic
commit
053dd1f9ae
1 zmienionych plików z 2 dodań i 0 usunięć
  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;
 
 	},