Pārlūkot izejas kodu

return data count instead of reimplementing logic twice

simonThiele 9 gadi atpakaļ
vecāks
revīzija
d4caae1e26
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;
 
 	},