瀏覽代碼

BufferAttribute.setArray method chaining

Takahiro 7 年之前
父節點
當前提交
b1f1b573d2
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 ) {