mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +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) {
|
if (delay <= 0) {
|
||||||
float duration = last->_animationEnd - last->_animationStart;
|
float duration = last->_animationEnd - last->_animationStart;
|
||||||
if (duration != 0) {
|
if (duration != 0) {
|
||||||
delay += duration * (1 + (int)(last->_trackTime / duration)) - _data.getMix(last->_animation, animation);
|
if (last->_loop) {
|
||||||
}
|
delay += duration * (1 + (int)(last->_trackTime / duration));
|
||||||
else {
|
} else {
|
||||||
|
delay += duration;
|
||||||
|
}
|
||||||
|
delay -= _data.getMix(last->_animation, animation);
|
||||||
|
} else {
|
||||||
delay = 0;
|
delay = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user