2
0
Эх сурвалжийг харах

return data count instead of reimplementing logic twice

simonThiele 9 жил өмнө
parent
commit
d4caae1e26

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