From ece4e93118626a4c120060c79dcef588de11edc4 Mon Sep 17 00:00:00 2001 From: pharan Date: Sat, 19 Nov 2016 06:35:00 +0800 Subject: [PATCH] [csharp] Fix and cleanup a few typos. --- spine-csharp/src/Animation.cs | 2 +- spine-csharp/src/AnimationState.cs | 4 ++-- spine-csharp/src/SkeletonBounds.cs | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spine-csharp/src/Animation.cs b/spine-csharp/src/Animation.cs index 2b94995bd..8ba2c8c2f 100644 --- a/spine-csharp/src/Animation.cs +++ b/spine-csharp/src/Animation.cs @@ -581,7 +581,7 @@ namespace Spine { } float[] frames = this.frames; - if (time < frames[0]) { + if (time < frames[0]) { // Time is before first frame. if (setupPose) { attachmentName = slot.data.attachmentName; slot.Attachment = attachmentName == null ? null : skeleton.GetAttachment(slotIndex, attachmentName); diff --git a/spine-csharp/src/AnimationState.cs b/spine-csharp/src/AnimationState.cs index 237ce5585..f9216a246 100644 --- a/spine-csharp/src/AnimationState.cs +++ b/spine-csharp/src/AnimationState.cs @@ -228,7 +228,7 @@ namespace Spine { if (rotateTimeline != null) { ApplyRotateTimeline(rotateTimeline, skeleton, animationTime, alpha, setupPose, timelinesRotation, i << 1, firstFrame); } else { - if (setupPose) { + if (!setupPose) { if (!attachments && timeline is AttachmentTimeline) continue; if (!drawOrder && timeline is DrawOrderTimeline) continue; } @@ -236,7 +236,7 @@ namespace Spine { } } - QueueEvents(entry, animationTime); + QueueEvents(from, animationTime); from.nextAnimationLast = animationTime; from.nextTrackLast = from.trackTime; diff --git a/spine-csharp/src/SkeletonBounds.cs b/spine-csharp/src/SkeletonBounds.cs index c55abbb54..261cacfa6 100644 --- a/spine-csharp/src/SkeletonBounds.cs +++ b/spine-csharp/src/SkeletonBounds.cs @@ -82,7 +82,7 @@ namespace Spine { } if (updateAabb) { - aabbCompute(); + AabbCompute(); } else { minX = int.MinValue; minY = int.MinValue; @@ -91,7 +91,7 @@ namespace Spine { } } - private void aabbCompute () { + private void AabbCompute () { float minX = int.MaxValue, minY = int.MaxValue, maxX = int.MinValue, maxY = int.MinValue; ExposedList polygons = Polygons; for (int i = 0, n = polygons.Count; i < n; i++) { @@ -204,7 +204,7 @@ namespace Spine { return false; } - public Polygon getPolygon (BoundingBoxAttachment attachment) { + public Polygon GetPolygon (BoundingBoxAttachment attachment) { int index = BoundingBoxes.IndexOf(attachment); return index == -1 ? null : Polygons.Items[index]; }