浏览代码

Added length to BufferAttribute.

Mr.doob 11 年之前
父节点
当前提交
99ef9cb04a
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/core/BufferAttribute.js

+ 6 - 0
src/core/BufferAttribute.js

@@ -8,6 +8,12 @@ THREE.BufferAttribute.prototype = {
 
 	constructor: THREE.BufferAttribute,
 
+	get length () {
+
+		return this.array.length;
+
+	},
+
 	set: function ( value ) {
 
 		this.array.set( value );