Update spline_editor.js

This commit is contained in:
kijai 2024-04-20 21:24:54 +03:00
parent 1959a4de55
commit d1a1bb67a6

View File

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