mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-01-29 16:57:15 +08:00
Update spline_editor.js
This commit is contained in:
parent
eb2d3762a5
commit
a93b8687ac
@ -366,22 +366,8 @@ class SplineEditor {
|
||||
|
||||
let linkedInputEditorPointsToSample = null
|
||||
let linkedOutputEditorPointsToSample = null
|
||||
let linkedInputEditor = context.getInputNode(0)
|
||||
let linkedOutputEditor = context.getOutputNodes(4)
|
||||
|
||||
if (linkedOutputEditor != null) {
|
||||
linkedOutputEditorPointsToSample = linkedOutputEditor[0].widgets.find(w => w.name === "points_to_sample")
|
||||
linkedOutputEditorPointsToSample.value = pointsWidget.value
|
||||
console.log(linkedOutputEditorPointsToSample)
|
||||
}
|
||||
if (linkedInputEditor != null) {
|
||||
linkedInputEditorPointsToSample = linkedInputEditor.widgets.find(w => w.name === "points_to_sample").value
|
||||
pointsWidget.value = linkedInputEditorPointsToSample
|
||||
console.log(linkedInputEditorPointsToSample)
|
||||
}else {
|
||||
var points_to_sample = pointsWidget.value
|
||||
}
|
||||
|
||||
|
||||
var points_to_sample = pointsWidget.value
|
||||
var interpolation = interpolationWidget.value
|
||||
var tension = tensionWidget.value
|
||||
var rangeMin = minValueWidget.value
|
||||
@ -415,10 +401,12 @@ class SplineEditor {
|
||||
if (linkedOutputEditor != null) {
|
||||
linkedOutputEditorPointsToSample = linkedOutputEditor[0].widgets.find(w => w.name === "points_to_sample")
|
||||
linkedOutputEditorPointsToSample.value = pointsWidget.value
|
||||
points_to_sample = pointsWidget.value
|
||||
}
|
||||
if (linkedInputEditor != null) {
|
||||
linkedInputEditorPointsToSample = linkedInputEditor.widgets.find(w => w.name === "points_to_sample")
|
||||
linkedInputEditorPointsToSample.value = pointsWidget.value
|
||||
points_to_sample = pointsWidget.value
|
||||
}
|
||||
else {
|
||||
points_to_sample = pointsWidget.value
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user