Force using shift modifier when selecting another spline

This commit is contained in:
kijai 2025-06-16 01:48:56 +03:00
parent 7afb0f906a
commit b560966027

View File

@ -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);
} }