Browse Source

BufferAttribute.setArray method chaining

Takahiro 7 years ago
parent
commit
b1f1b573d2
1 changed files with 2 additions and 0 deletions
  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.count = array !== undefined ? array.length / this.itemSize : 0;
 		this.array = array;
 		this.array = array;
 
 
+		return this;
+
 	},
 	},
 
 
 	setDynamic: function ( value ) {
 	setDynamic: function ( value ) {