mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[csharp] Removed bad fix for #1024
based on 1514b4acbb (diff-2e690293d0fea3104ddda07be1d1e5c9)
This commit is contained in:
parent
5948e5a62f
commit
ed8f238524
@ -69,7 +69,7 @@ namespace Spine {
|
|||||||
trackEntryPool
|
trackEntryPool
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Increments the track entry times, setting queued animations as current if needed</summary>
|
/// Increments the track entry times, setting queued animations as current if needed</summary>
|
||||||
/// <param name="delta">delta time</param>
|
/// <param name="delta">delta time</param>
|
||||||
@ -259,17 +259,12 @@ namespace Spine {
|
|||||||
break;
|
break;
|
||||||
case Dip:
|
case Dip:
|
||||||
pose = MixPose.Setup;
|
pose = MixPose.Setup;
|
||||||
alpha = mix == 1 ? 0 : alphaDip;
|
alpha = alphaDip;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pose = MixPose.Setup;
|
pose = MixPose.Setup;
|
||||||
if (mix == 1) {
|
TrackEntry dipMix = timelineDipMix[i];
|
||||||
alpha = 0;
|
alpha = alphaDip * Math.Max(0, 1 - dipMix.mixTime / dipMix.mixDuration);
|
||||||
} else {
|
|
||||||
alpha = alphaDip;
|
|
||||||
var dipMix = timelineDipMix[i];
|
|
||||||
alpha *= Math.Max(0, 1 - dipMix.mixTime / dipMix.mixDuration);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
from.totalAlpha += alpha;
|
from.totalAlpha += alpha;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user