From 5dd4f4a9f72eeba4df13f68e26cc4def2e63870d Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 10 Jan 2025 16:44:32 +0100 Subject: [PATCH] animation: don't fire update events if the avar is not being animated --- src/animation/AnimatedVariable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/animation/AnimatedVariable.cpp b/src/animation/AnimatedVariable.cpp index eee80e2..05c181b 100644 --- a/src/animation/AnimatedVariable.cpp +++ b/src/animation/AnimatedVariable.cpp @@ -103,7 +103,7 @@ bool CBaseAnimatedVariable::ok() const { } void CBaseAnimatedVariable::onUpdate() { - if (m_fUpdateCallback) + if (m_bIsBeingAnimated && m_fUpdateCallback) m_fUpdateCallback(m_pSelf); }