Просмотр исходного кода

[libgdx] Changed SequenceTimeline to match AttachmentTimeline behavior.

Nathan Sweet 10 месяцев назад
Родитель
Сommit
9d49999e2b

+ 5 - 0
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java

@@ -2622,6 +2622,11 @@ public class Animation {
 			Sequence sequence = ((HasTextureRegion)slotAttachment).getSequence();
 			if (sequence == null) return;
 
+			if (direction == out) {
+				if (blend == setup) slot.setSequenceIndex(-1);
+				return;
+			}
+
 			float[] frames = this.frames;
 			if (time < frames[0]) {
 				if (blend == setup || blend == first) slot.setSequenceIndex(-1);