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); }