From 90ce10960e26b14eb9ff383b33dee3eaeabb9700 Mon Sep 17 00:00:00 2001 From: maj00r Date: Mon, 19 Oct 2026 19:31:36 +0200 Subject: [PATCH] fix(editor): a vertex the track runs straight through no longer crashes the fit of a shape The ends' budget of a curve too big for its leg lowered the scale of both vertices beside it, a straight one too, which has no tangents to ask: with no transitions the empty function was called and threw bad_function_call, with transitions the vertex got a false warning of a reduced R. Straight vertices are left out of the scaling. --- editor/editorAlignment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editorAlignment.cpp b/editor/editorAlignment.cpp index 3ad50910..ce4db650 100644 --- a/editor/editorAlignment.cpp +++ b/editor/editorAlignment.cpp @@ -488,7 +488,7 @@ result fit_between(design const &Design) } for (std::size_t k = 0; k < count; ++k) { - if (scales[k] >= 1.0) + if (scales[k] >= 1.0 || fits[k].tangents == nullptr) continue; auto &fit{fits[k]}; auto const budgetin{fit.tangent_in * scales[k]};