diff --git a/index.js b/index.js index 0fe714d..3a7cc4d 100644 --- a/index.js +++ b/index.js @@ -25,7 +25,7 @@ module.exports = (function () { currFrame += 1; var attributes = bufferGeomAttributes, - numPoints = attributes.position.length / 3; + numPoints = attributes.position.count / 3; for (var i = 0; i < numPoints; ++i) { tmpPos.set( diff --git a/package.json b/package.json index ec2c78a..1fed129 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "three-buffergeometry-sort", - "version": "1.1.0", + "version": "1.2.0", "description": "Utility to sort THREE.js BufferGeometry", "main": "index.js", "repository": { @@ -18,6 +18,6 @@ }, "homepage": "https://github.com/frewsxcv/three-buffergeometry-sort", "devDependencies": { - "three": "~0.71.0" + "three": "~0.73.0" } }