[as3] Fix for #1352, the last subsequent attachment timeline always mixes out to the setup pose.

This commit is contained in:
badlogic 2019-05-15 13:55:21 +02:00
parent 6341fbbd9d
commit 6d8baa17fd
4 changed files with 5 additions and 2 deletions

View File

@ -246,8 +246,11 @@ package spine.animation {
var timelineBlend: MixBlend;
var alpha : Number = 0;
switch (timelineMode[i] & (NOT_LAST - 1)) {
case SUBSEQUENT:
if (!attachments && timeline is AttachmentTimeline) continue;
case SUBSEQUENT:
if (!attachments && timeline is AttachmentTimeline) {
if ((timelineMode[i] & NOT_LAST) == NOT_LAST) continue;
blend = MixBlend.setup;
}
if (!drawOrder && timeline is DrawOrderTimeline) continue;
timelineBlend = blend;
alpha = alphaMix;