mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 12:54:40 +08:00
Update spline_editor.js
This commit is contained in:
parent
ddc4753a03
commit
785463387b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user