Przeglądaj źródła

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

Davide Tantillo 10 miesięcy temu
rodzic
commit
7a028bf6dc

+ 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;