Przeglądaj źródła

return data count instead of reimplementing logic twice

simonThiele 9 lat temu
rodzic
commit
d4caae1e26
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
 
 	},