Эх сурвалжийг харах

[spine-csharp] Fixed ColorTimeline parsing

badlogic 9 жил өмнө
parent
commit
4e49723cd4

+ 1 - 1
spine-csharp/src/SkeletonJson.cs

@@ -450,7 +450,7 @@ namespace Spine {
 								frameIndex++;
 							}
 							timelines.Add(timeline);
-							duration = Math.Max(duration, timeline.frames[timeline.FrameCount -1] * ColorTimeline.ENTRIES);
+							duration = Math.Max(duration, timeline.frames[(timeline.FrameCount -1) * ColorTimeline.ENTRIES];
 
 						} else if (timelineName == "attachment") {
 							var timeline = new AttachmentTimeline(values.Count);