Browse Source

return data count instead of reimplementing logic twice

simonThiele 9 years ago
parent
commit
d4caae1e26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/InterleavedBufferAttribute.js

+ 1 - 1
src/core/InterleavedBufferAttribute.js

@@ -26,7 +26,7 @@ THREE.InterleavedBufferAttribute.prototype = {
 
 
 	get count() {
 	get count() {
 
 
-		return this.data.array.length / this.data.stride;
+		return this.data.count;
 
 
 	},
 	},