瀏覽代碼

return data count instead of reimplementing logic twice

simonThiele 9 年之前
父節點
當前提交
d4caae1e26
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/InterleavedBufferAttribute.js

+ 1 - 1
src/core/InterleavedBufferAttribute.js

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