From 6cfefd976183cf9b7a5e109fa746dfa2df7d981e Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Tue, 9 Mar 2021 13:35:19 +0100 Subject: [PATCH] improve tube --- src/meshes/Tube.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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',