Blend: the spine's ends are its exact end points

This commit is contained in:
bflatastic
2026-11-09 05:06:28 +07:00
parent d58000b5df
commit 8e45313501
+1 -1
View File
@@ -1020,7 +1020,7 @@ impl Spine {
let end = self.anchor_length(i + 1).unwrap_or(self.length());
if s <= end || i + 1 == n {
let local_s = (s - start).max(0.0) / (end - start).max(1e-12) * c.arclen(1e-9);
let t = c.inv_arclen(local_s, 1e-9).clamp(1e-9, 1.0 - 1e-9);
let t = c.inv_arclen(local_s, 1e-9).clamp(0.0, 1.0);
let e = c.eval(t);
let tv = c.deriv().eval(t).to_vec2();
// Where a handle sits on its anchor the derivative vanishes there: take the