mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 14:54:53 +08:00
Never prefer empty animation when interrupting a mix.
This commit is contained in:
parent
a840f4f959
commit
81d7c1daeb
@ -274,7 +274,8 @@ public class AnimationState {
|
||||
queue.interrupt(current);
|
||||
|
||||
// If a mix is in progress, mix from the closest animation.
|
||||
if (mixingFrom != null && (current.mixDuration == 0 || current.mixTime / current.mixDuration < 0.5f)) {
|
||||
if (mixingFrom != null && mixingFrom.animation != emptyAnimation
|
||||
&& (current.mixDuration == 0 || current.mixTime / current.mixDuration < 0.5f)) {
|
||||
entry.mixingFrom = mixingFrom;
|
||||
mixingFrom = current;
|
||||
} else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user