浏览代码

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

badlogic 6 年之前
父节点
当前提交
6d8baa17fd

二进制
spine-as3/spine-as3-example/lib/spine-as3.swc


+ 5 - 2
spine-as3/spine-as3/src/spine/animation/AnimationState.as

@@ -246,8 +246,11 @@ package spine.animation {
 					var timelineBlend: MixBlend;
 					var timelineBlend: MixBlend;
 					var alpha : Number = 0;
 					var alpha : Number = 0;
 					switch (timelineMode[i] & (NOT_LAST - 1)) {
 					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;
 						if (!drawOrder && timeline is DrawOrderTimeline) continue;
 						timelineBlend = blend;
 						timelineBlend = blend;
 						alpha = alphaMix;
 						alpha = alphaMix;

二进制
spine-starling/spine-starling-example/lib/spine-as3.swc


二进制
spine-starling/spine-starling/lib/spine-as3.swc