Skip to content

Commit

Permalink
animation: don't fire update events if the avar is not being animated
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jan 10, 2025
1 parent 3c895da commit 5dd4f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/animation/AnimatedVariable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bool CBaseAnimatedVariable::ok() const {
}

void CBaseAnimatedVariable::onUpdate() {
if (m_fUpdateCallback)
if (m_bIsBeingAnimated && m_fUpdateCallback)
m_fUpdateCallback(m_pSelf);
}

Expand Down

0 comments on commit 5dd4f4a

Please sign in to comment.