mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[libgdx] Fixed losing mixingFrom when calling setAnimation twice.
closes #761
This commit is contained in:
parent
6d7217d44c
commit
020f557004
@ -410,11 +410,11 @@ public class AnimationState {
|
||||
if (current != null) {
|
||||
if (current.nextTrackLast == -1) {
|
||||
// Don't mix from an entry that was never applied.
|
||||
tracks.set(trackIndex, null);
|
||||
tracks.set(trackIndex, current.mixingFrom);
|
||||
queue.interrupt(current);
|
||||
queue.end(current);
|
||||
disposeNext(current);
|
||||
current = null;
|
||||
current = current.mixingFrom;
|
||||
} else
|
||||
disposeNext(current);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user