Selaa lähdekoodia

BufferAttribute.setArray method chaining

Takahiro 7 vuotta sitten
vanhempi
commit
b1f1b573d2
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/core/BufferAttribute.js

+ 2 - 0
src/core/BufferAttribute.js

@@ -56,6 +56,8 @@ Object.assign( BufferAttribute.prototype, {
 		this.count = array !== undefined ? array.length / this.itemSize : 0;
 		this.array = array;
 
+		return this;
+
 	},
 
 	setDynamic: function ( value ) {