From c5aa20f226a2f829b411b7128d939272de822e68 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 3 Mar 2023 13:08:46 +0000 Subject: [PATCH] fix bezier step approx --- src/helpers/BezierCurve.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/BezierCurve.cpp b/src/helpers/BezierCurve.cpp index c979342d..f628c24f 100644 --- a/src/helpers/BezierCurve.cpp +++ b/src/helpers/BezierCurve.cpp @@ -69,5 +69,5 @@ float CBezierCurve::getYForPoint(float x) { if (std::isnan(PERCINDELTA) || std::isinf(PERCINDELTA)) // can sometimes happen for VERY small x return 0.f; - return LOWERPOINT->y + (UPPERPOINT->y - UPPERPOINT->y) * PERCINDELTA; + return LOWERPOINT->y + (UPPERPOINT->y - LOWERPOINT->y) * PERCINDELTA; } \ No newline at end of file