Fix editor animation offset time being affected by the animation speed factor

This commit is contained in:
Jupeyy 2022-04-15 10:01:48 +02:00
parent f60ae47be1
commit d892de2b03

View file

@ -280,8 +280,9 @@ void CEditor::EnvelopeEval(int TimeOffsetMillis, int Env, float *pChannels, void
}
CEnvelope *e = pThis->m_Map.m_lEnvelopes[Env];
float t = pThis->m_AnimateTime + (TimeOffsetMillis / 1000.0f);
float t = pThis->m_AnimateTime;
t *= pThis->m_AnimateSpeed;
t += (TimeOffsetMillis / 1000.0f);
e->Eval(t, pChannels);
}