[cpp] Apply left over time additively to track time of delayed TrackEntry. See #1504.

This commit is contained in:
badlogic 2019-09-26 11:34:26 +02:00
parent c1cc7f4db8
commit 60ab78d4c1

View File

@ -353,7 +353,7 @@ void AnimationState::update(float delta) {
float nextTime = current._trackLast - next->_delay;
if (nextTime >= 0) {
next->_delay = 0;
next->_trackTime = current._timeScale == 0 ? 0 : (nextTime / current._timeScale + delta) * next->_timeScale;
next->_trackTime += current._timeScale == 0 ? 0 : (nextTime / current._timeScale + delta) * next->_timeScale;
current._trackTime += currentDelta;
setCurrent(i, next, true);
while (next->_mixingFrom != NULL) {