Update spline_editor.js

This commit is contained in:
kijai 2024-04-25 18:14:30 +03:00
parent ddc4753a03
commit 785463387b

View File

@ -171,8 +171,15 @@ function createSplineEditor(context, reset=false) {
tensionWidget.callback = () => {
tension = tensionWidget.value
points_to_sample = pointsWidget.value
let coords = samplePoints(pathElements[0], points_to_sample);
let coordsString = JSON.stringify(coords);
pointsStoreWidget.value = JSON.stringify(points);
if (coordWidget) {
coordWidget.value = coordsString;
vis.render();
}
}
pointsWidget.callback = () => {
points_to_sample = pointsWidget.value