mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2025-12-22 03:04:29 +08:00
Force using shift modifier when selecting another spline
This commit is contained in:
parent
7afb0f906a
commit
b560966027
@ -928,11 +928,13 @@ this.lastMousePosition = { x: this.width/2, y: this.height/2 };
|
|||||||
this.vis.render();
|
this.vis.render();
|
||||||
})
|
})
|
||||||
.event("mousedown", () => {
|
.event("mousedown", () => {
|
||||||
if (this.activeSplineIndex !== splineIndex) {
|
if (pv.event.shiftKey) {
|
||||||
this.activeSplineIndex = splineIndex;
|
if (this.activeSplineIndex !== splineIndex) {
|
||||||
this.refreshSplineElements();
|
this.activeSplineIndex = splineIndex;
|
||||||
}
|
this.refreshSplineElements();
|
||||||
});
|
}
|
||||||
|
}}
|
||||||
|
);
|
||||||
|
|
||||||
this.lineObjects.push(lineObj);
|
this.lineObjects.push(lineObj);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user