From f891eb9e0fe8ff3b9fb1274b5f59daaf8ead5285 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:34:27 +0300 Subject: [PATCH] Update spline_editor.js --- web/js/spline_editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index 5f85c8b..0fc7939 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -447,7 +447,8 @@ function createSplineEditor(context, reset=false) { svgElement.style['zIndex'] = "2" svgElement.style['position'] = "relative" context.splineEditor.element.appendChild(svgElement); - var pathElements = svgElement.getElementsByTagName('path'); // Get all path elements + var pathElements = svgElement.getElementsByTagName('path'); // Get all path elements + updatePath(); } function samplePoints(svgPathElement, numSamples) {