mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-09-06 10:07:00 +08:00
Update spline_editor.js
This commit is contained in:
parent
1959a4de55
commit
d1a1bb67a6
@ -236,7 +236,7 @@ function createSplineEditor(context, reset=false) {
|
|||||||
.event("mousedown", pv.Behavior.drag())
|
.event("mousedown", pv.Behavior.drag())
|
||||||
.event("dragstart", function() {
|
.event("dragstart", function() {
|
||||||
i = this.index;
|
i = this.index;
|
||||||
if (pv.event.button === 2) {
|
if (pv.event.button === 2 && i !== 0 && i !== points.length - 1) {
|
||||||
points.splice(i--, 1);
|
points.splice(i--, 1);
|
||||||
vis.render();
|
vis.render();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user