mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-24 12:14:35 +08:00
Fix spline not updating when controlpoint is on and edge
This commit is contained in:
parent
8ccf83fbbf
commit
4db34a969d
@ -371,11 +371,6 @@ function createSplineEditor(context, reset=false) {
|
|||||||
context.contextMenu.style.top = `${pv.event.clientY}px`;
|
context.contextMenu.style.top = `${pv.event.clientY}px`;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.event("mouseup", function() {
|
|
||||||
if (this.pathElements !== null) {
|
|
||||||
updatePath();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
vis.add(pv.Rule)
|
vis.add(pv.Rule)
|
||||||
.data(pv.range(0, 8, .5))
|
.data(pv.range(0, 8, .5))
|
||||||
@ -416,6 +411,9 @@ function createSplineEditor(context, reset=false) {
|
|||||||
return this;
|
return this;
|
||||||
})
|
})
|
||||||
.event("dragend", function() {
|
.event("dragend", function() {
|
||||||
|
if (this.pathElements !== null) {
|
||||||
|
updatePath();
|
||||||
|
}
|
||||||
isDragging = false;
|
isDragging = false;
|
||||||
})
|
})
|
||||||
.event("drag", vis)
|
.event("drag", vis)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user