[csharp] Fix not returning to setup pose when multiple mixing from entries end at same time. See #1027

This commit is contained in:
badlogic 2017-10-28 09:44:21 +02:00
parent a8c5282653
commit ed2594deca

View File

@ -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;
}