Fix for #1352. The last subsequent attachment timeline always mixes out to the setup pose.

This commit is contained in:
badlogic 2019-05-14 17:43:41 +02:00
parent 26e3f928f7
commit 603c9e2366

View File

@ -293,7 +293,10 @@ public class AnimationState {
float alpha;
switch (timelineMode[i] & NOT_LAST - 1) {
case SUBSEQUENT:
if (!attachments && timeline instanceof AttachmentTimeline) continue;
if (!attachments && timeline instanceof AttachmentTimeline) {
if ((timelineMode[i] & NOT_LAST) == NOT_LAST) continue;
blend = MixBlend.setup;
}
if (!drawOrder && timeline instanceof DrawOrderTimeline) continue;
timelineBlend = blend;
alpha = alphaMix;