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

This commit is contained in:
Harald Csaszar 2024-11-15 16:27:37 +01:00
parent e327e9beb5
commit 303cd85308
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -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",