Browse Source

BufferAttribute.setArray method chaining

Takahiro 7 năm trước cách đây
mục cha
commit
b1f1b573d2
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 ) {