소스 검색

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 );