animationmgr: avoid redundant ticks
This commit is contained in:
parent
b925f1b497
commit
a077b7a92e
5 changed files with 52 additions and 9 deletions
|
|
@ -82,8 +82,11 @@ float CAnimatedVariable::getCurveValue() {
|
|||
}
|
||||
|
||||
void CAnimatedVariable::connectToActive() {
|
||||
g_pAnimationManager->scheduleTick(); // otherwise the animation manager will never pick this up
|
||||
|
||||
if (!m_bIsConnectedToActive)
|
||||
g_pAnimationManager->m_vActiveAnimatedVariables.push_back(this);
|
||||
|
||||
m_bIsConnectedToActive = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue