diff --git a/src/meshes/Tube.js b/src/meshes/Tube.js index 98dd6dd..ea0acca 100644 --- a/src/meshes/Tube.js +++ b/src/meshes/Tube.js @@ -36,8 +36,9 @@ export default { } this.geometry = new TubeGeometry(curve, this.tubularSegments, this.radius, this.radialSegments, this.closed); }, - updateCurve() { - updateTubeGeometryPoints(this.geometry, this.points); + // update curve points (without using prop, faster) + updateCurve(points) { + updateTubeGeometryPoints(this.geometry, points); }, }, __hmrId: 'Tube',