Browse Source

Added length to BufferAttribute.

Mr.doob 11 years ago
parent
commit
99ef9cb04a
1 changed files with 6 additions and 0 deletions
  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 );