mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Fix not returning to setup pose when multiple mixing from entries end at same time
#1024
This commit is contained in:
parent
1514b4acbb
commit
882f49f5a9
@ -244,9 +244,10 @@ public class AnimationState {
|
|||||||
if (from.mixingFrom != null) applyMixingFrom(from, skeleton, currentPose);
|
if (from.mixingFrom != null) applyMixingFrom(from, skeleton, currentPose);
|
||||||
|
|
||||||
float mix;
|
float mix;
|
||||||
if (to.mixDuration == 0) // Single frame mix to undo mixingFrom changes.
|
if (to.mixDuration == 0) { // Single frame mix to undo mixingFrom changes.
|
||||||
mix = 1;
|
mix = 1;
|
||||||
else {
|
currentPose = MixPose.setup;
|
||||||
|
} else {
|
||||||
mix = to.mixTime / to.mixDuration;
|
mix = to.mixTime / to.mixDuration;
|
||||||
if (mix > 1) mix = 1;
|
if (mix > 1) mix = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user