Преглед изворни кода

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