mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-01-29 08:47:16 +08:00
Merge branch 'main' into develop
This commit is contained in:
commit
48736ca845
@ -187,8 +187,8 @@ app.registerExtension({
|
||||
this.splineEditor.parentEl.className = "spline-editor";
|
||||
this.splineEditor.parentEl.id = `spline-editor-${this.uuid}`
|
||||
element.appendChild(this.splineEditor.parentEl);
|
||||
|
||||
chainCallback(this, "onGraphConfigured", function() {
|
||||
|
||||
chainCallback(this, "onConfigure", function() {
|
||||
createSplineEditor(this);
|
||||
});
|
||||
|
||||
@ -394,6 +394,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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user