From 309f355c60743052abfe0d1c6656cf31cf7b3728 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 29 Aug 2023 19:28:45 +0900 Subject: [PATCH] common/bezier: fix a wrong computation. the value should be normalized. --- src/common/tvgBezier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/tvgBezier.cpp b/src/common/tvgBezier.cpp index 2e19ece4..5bea44e8 100644 --- a/src/common/tvgBezier.cpp +++ b/src/common/tvgBezier.cpp @@ -116,7 +116,7 @@ float bezAt(const Bezier& bz, float at, float length) //just in case to prevent an infinite loop if (at <= 0) return 0.0f; - if (at >= length) return length; + if (at >= length) return 1.0f; while (true) { auto right = bz;