mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
Porting over recent change from AnimationState.c to AnimationState.cpp
This commit is contained in:
parent
2bf0d3fdfa
commit
162cbeec72
@ -568,9 +568,13 @@ namespace Spine {
|
||||
if (delay <= 0) {
|
||||
float duration = last->_animationEnd - last->_animationStart;
|
||||
if (duration != 0) {
|
||||
delay += duration * (1 + (int)(last->_trackTime / duration)) - _data.getMix(last->_animation, animation);
|
||||
}
|
||||
else {
|
||||
if (last->_loop) {
|
||||
delay += duration * (1 + (int)(last->_trackTime / duration));
|
||||
} else {
|
||||
delay += duration;
|
||||
}
|
||||
delay -= _data.getMix(last->_animation, animation);
|
||||
} else {
|
||||
delay = 0;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user