mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-09 12:16: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);
|
queue.interrupt(current);
|
||||||
|
|
||||||
// If a mix is in progress, mix from the closest animation.
|
// 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;
|
entry.mixingFrom = mixingFrom;
|
||||||
mixingFrom = current;
|
mixingFrom = current;
|
||||||
} else
|
} else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user