From e2c286548d2a83376df3001bab0b48e529bd0075 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 27 Feb 2024 22:34:02 +0000 Subject: [PATCH] avar: return curve value of 1 when not animated fixes #4862 --- src/helpers/AnimatedVariable.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helpers/AnimatedVariable.cpp b/src/helpers/AnimatedVariable.cpp index 50de0149..740e604f 100644 --- a/src/helpers/AnimatedVariable.cpp +++ b/src/helpers/AnimatedVariable.cpp @@ -75,6 +75,9 @@ float CAnimatedVariable::getPercent() { } float CAnimatedVariable::getCurveValue() { + if (!m_bIsBeingAnimated) + return 1.f; + const auto SPENT = getPercent(); if (SPENT >= 1.f)