Browse Source

[csharp] Port of commit 9d49999: Changed SequenceTimeline to match AttachmentTimeline behavior. See #2687.

Harald Csaszar 9 months ago
parent
commit
303cd85308
2 changed files with 6 additions and 1 deletions
  1. 5 0
      spine-csharp/src/Animation.cs
  2. 1 1
      spine-csharp/src/package.json

+ 5 - 0
spine-csharp/src/Animation.cs

@@ -2782,6 +2782,11 @@ namespace Spine {
 			Sequence sequence = ((IHasTextureRegion)slotAttachment).Sequence;
 			if (sequence == null) return;
 
+			if (direction == MixDirection.Out) {
+				if (blend == MixBlend.Setup) slot.SequenceIndex = -1;
+				return;
+			}
+
 			float[] frames = this.frames;
 			if (time < frames[0]) {
 				if (blend == MixBlend.Setup || blend == MixBlend.First) slot.SequenceIndex = -1;

+ 1 - 1
spine-csharp/src/package.json

@@ -2,7 +2,7 @@
 	"name": "com.esotericsoftware.spine.spine-csharp",
 	"displayName": "spine-csharp Runtime",
 	"description": "This plugin provides the spine-csharp core runtime.",
-	"version": "4.2.31",
+	"version": "4.2.32",
 	"unity": "2018.3",
 	"author": {
 		"name": "Esoteric Software",