diff --git a/index.js b/index.js index 3a7cc4d..732838b 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ module.exports = (function () { currFrame += 1; var attributes = bufferGeomAttributes, - numPoints = attributes.position.count / 3; + numPoints = attributes.position.count; for (var i = 0; i < numPoints; ++i) { tmpPos.set( diff --git a/package.json b/package.json index 1fed129..cc0b0f9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "three-buffergeometry-sort", - "version": "1.2.0", + "version": "1.3.0", "description": "Utility to sort THREE.js BufferGeometry", "main": "index.js", "repository": {