mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
parent
472392190f
commit
28fd5aff09
@ -281,13 +281,17 @@ public class AnimationState {
|
|||||||
break;
|
break;
|
||||||
case DIP:
|
case DIP:
|
||||||
pose = MixPose.setup;
|
pose = MixPose.setup;
|
||||||
alpha = alphaDip;
|
alpha = mix == 1 ? 0 : alphaDip;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pose = MixPose.setup;
|
pose = MixPose.setup;
|
||||||
alpha = alphaDip;
|
if (mix == 1)
|
||||||
TrackEntry dipMix = (TrackEntry)timelineDipMix[i];
|
alpha = 0;
|
||||||
alpha *= Math.max(0, 1 - dipMix.mixTime / dipMix.mixDuration);
|
else {
|
||||||
|
alpha = alphaDip;
|
||||||
|
TrackEntry dipMix = (TrackEntry)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