From d1a1bb67a608d4f92fd235d57840c17765c93123 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 20 Apr 2024 21:24:54 +0300 Subject: [PATCH] Update spline_editor.js --- web/js/spline_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index 531aebe..9a40a15 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -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(); }