From 2f53c19ee2eab85693a738ac662016c53b2ba4f6 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 6 May 2024 00:04:51 +0300 Subject: [PATCH] Update spline_editor.js --- web/js/spline_editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index 8f03f66..aa33843 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -357,6 +357,10 @@ function createSplineEditor(context, reset=false) { context.setSize([context.size[0], h + 410]); updatePath(); } + pointsStoreWidget.callback = () => { + points = JSON.parse(pointsStoreWidget.value); + updatePath(); + } // Initialize or reset points array var drawHandles = false;