mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-04-11 06:26:58 +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("dragstart", function() {
|
||||
i = this.index;
|
||||
if (pv.event.button === 2) {
|
||||
if (pv.event.button === 2 && i !== 0 && i !== points.length - 1) {
|
||||
points.splice(i--, 1);
|
||||
vis.render();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user