فهرست منبع

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;
 
 	},