Browse Source

BufferAttribute: .length is now the number of elements. See #6473
@benaadams do you mind changing the other ones? O:)

Mr.doob 10 years ago
parent
commit
d5281a3a4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/BufferAttribute.js

+ 1 - 1
src/core/BufferAttribute.js

@@ -17,7 +17,7 @@ THREE.BufferAttribute.prototype = {
 
 
 	get length () {
 	get length () {
 
 
-		return this.array.length;
+		return this.array.length / this.itemSize;
 
 
 	},
 	},