mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-16 03:51:37 +08:00
[cpp] Apply left over time additively to track time of delayed TrackEntry. See #1504.
This commit is contained in:
parent
c1cc7f4db8
commit
60ab78d4c1
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user