mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[csharp] Fix not returning to setup pose when multiple mixing from entries end at same time. See #1027
This commit is contained in:
parent
a8c5282653
commit
ed2594deca
@ -220,9 +220,10 @@ namespace Spine {
|
||||
if (from.mixingFrom != null) ApplyMixingFrom(from, skeleton, currentPose);
|
||||
|
||||
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;
|
||||
else {
|
||||
currentPose = MixPose.Setup;
|
||||
} else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1) mix = 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user