mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-14 23:34:35 +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 = () => {
|
tensionWidget.callback = () => {
|
||||||
tension = tensionWidget.value
|
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();
|
vis.render();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pointsWidget.callback = () => {
|
pointsWidget.callback = () => {
|
||||||
points_to_sample = pointsWidget.value
|
points_to_sample = pointsWidget.value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user