소스 검색

[haxe] Port of commit 9d49999: Changed SequenceTimeline to match AttachmentTimeline behavior.

Davide Tantillo 10 달 전
부모
커밋
7a028bf6dc
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      spine-haxe/spine-haxe/spine/animation/SequenceTimeline.hx

+ 5 - 0
spine-haxe/spine-haxe/spine/animation/SequenceTimeline.hx

@@ -82,6 +82,11 @@ class SequenceTimeline extends Timeline implements SlotTimeline {
 				return;
 		}
 
+		if (direction == MixDirection.mixOut) {
+			if (blend == MixBlend.setup) slot.sequenceIndex = -1;
+			return;
+		}
+
 		if (time < frames[0]) {
 			if (blend == MixBlend.setup || blend == MixBlend.first)
 				slot.sequenceIndex = -1;