mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[csharp] Port of commit 9d49999: Changed SequenceTimeline to match AttachmentTimeline behavior. See #2687.
This commit is contained in:
parent
e327e9beb5
commit
303cd85308
@ -2782,6 +2782,11 @@ namespace Spine {
|
|||||||
Sequence sequence = ((IHasTextureRegion)slotAttachment).Sequence;
|
Sequence sequence = ((IHasTextureRegion)slotAttachment).Sequence;
|
||||||
if (sequence == null) return;
|
if (sequence == null) return;
|
||||||
|
|
||||||
|
if (direction == MixDirection.Out) {
|
||||||
|
if (blend == MixBlend.Setup) slot.SequenceIndex = -1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
float[] frames = this.frames;
|
float[] frames = this.frames;
|
||||||
if (time < frames[0]) {
|
if (time < frames[0]) {
|
||||||
if (blend == MixBlend.Setup || blend == MixBlend.First) slot.SequenceIndex = -1;
|
if (blend == MixBlend.Setup || blend == MixBlend.First) slot.SequenceIndex = -1;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "com.esotericsoftware.spine.spine-csharp",
|
"name": "com.esotericsoftware.spine.spine-csharp",
|
||||||
"displayName": "spine-csharp Runtime",
|
"displayName": "spine-csharp Runtime",
|
||||||
"description": "This plugin provides the spine-csharp core runtime.",
|
"description": "This plugin provides the spine-csharp core runtime.",
|
||||||
"version": "4.2.31",
|
"version": "4.2.32",
|
||||||
"unity": "2018.3",
|
"unity": "2018.3",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Esoteric Software",
|
"name": "Esoteric Software",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user