mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
[csharp] Fixed IndexOutOfBounds at loading sequence attachments from json on older dotnet runtime version. Clsoes #2213.
This commit is contained in:
parent
1624960dae
commit
2459755f8c
@ -1027,8 +1027,8 @@ namespace Spine {
|
||||
} else if (timelineName == "sequence") {
|
||||
SequenceTimeline timeline = new SequenceTimeline(frames, slot.index, attachment);
|
||||
float lastDelay = 0;
|
||||
for (int frame = 0; keyMap != null;
|
||||
keyMapEnumerator.MoveNext(), keyMap = (Dictionary<string, Object>)keyMapEnumerator.Current, frame++) {
|
||||
for (int frame = 0; keyMap != null; keyMap = keyMapEnumerator.MoveNext() ?
|
||||
(Dictionary<string, Object>)keyMapEnumerator.Current : null, frame++) {
|
||||
|
||||
float delay = GetFloat(keyMap, "delay", lastDelay);
|
||||
SequenceMode sequenceMode = (SequenceMode)Enum.Parse(typeof(SequenceMode),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user