mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
Can only use #1024 fix on track 0.
This commit is contained in:
parent
eb44a67240
commit
ecedff1ffa
@ -249,11 +249,11 @@ public class AnimationState {
|
||||
float mix;
|
||||
if (to.mixDuration == 0) { // Single frame mix to undo mixingFrom changes.
|
||||
mix = 1;
|
||||
blend = MixBlend.setup;
|
||||
if (blend == MixBlend.first) blend = MixBlend.setup; // Tracks >0 are transparent and can't reset to setup pose.
|
||||
} else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1) mix = 1;
|
||||
if (blend != MixBlend.first) blend = from.mixBlend;
|
||||
if (blend != MixBlend.first) blend = from.mixBlend; // Track 0 ignores track mix blend.
|
||||
}
|
||||
|
||||
Array<Event> events = mix < from.eventThreshold ? this.events : null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user