mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-09 21:04:41 +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`;
|
||||
}
|
||||
})
|
||||
.event("mouseup", function() {
|
||||
if (this.pathElements !== null) {
|
||||
updatePath();
|
||||
}
|
||||
});
|
||||
|
||||
vis.add(pv.Rule)
|
||||
.data(pv.range(0, 8, .5))
|
||||
@ -416,6 +411,9 @@ function createSplineEditor(context, reset=false) {
|
||||
return this;
|
||||
})
|
||||
.event("dragend", function() {
|
||||
if (this.pathElements !== null) {
|
||||
updatePath();
|
||||
}
|
||||
isDragging = false;
|
||||
})
|
||||
.event("drag", vis)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user