From 4cef4da9ef8bb9df5794d0106600af2301ffa735 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Fri, 26 Sep 2025 18:35:29 -0500 Subject: [PATCH] Fixing a bug in Keyframe that caused the GetDelta() function to return 0.0 early - which was breaking reversed time curves (zero'ing out the first frame or two) --- src/KeyFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KeyFrame.cpp b/src/KeyFrame.cpp index 1df3f3c0..8c761581 100644 --- a/src/KeyFrame.cpp +++ b/src/KeyFrame.cpp @@ -399,7 +399,7 @@ void Keyframe::SetJsonValue(const Json::Value root) { double Keyframe::GetDelta(int64_t index) const { if (index < 1) return 0.0; if (index == 1 && !Points.empty()) return Points[0].co.Y; - if (index >= GetLength()) return 0.0; + if (index > GetLength()) return 1.0; return GetValue(index) - GetValue(index - 1); }