From 0d30263f50dba7604b056f482151d0937d72a774 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 19 Mar 2019 17:25:33 +0100 Subject: [PATCH] [csharp] Ported AnimationState and Animation changes of commit 50bfb3a. See #1303. --- spine-csharp/src/AnimationState.cs | 4 ++-- spine-csharp/src/Attachments/VertexAttachment.cs | 4 ++-- spine-csharp/src/Slot.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spine-csharp/src/AnimationState.cs b/spine-csharp/src/AnimationState.cs index 4dc38e3ba..be108a89a 100644 --- a/spine-csharp/src/AnimationState.cs +++ b/spine-csharp/src/AnimationState.cs @@ -742,10 +742,10 @@ namespace Spine { propertyIDs.Clear(); for (int i = tracks.Count - 1; i >= 0; i--) { TrackEntry entry = tracksItems[i]; - do { + while (entry != null) { ComputeNotLast(entry); entry = entry.mixingFrom; - } while (entry != null); + } } } diff --git a/spine-csharp/src/Attachments/VertexAttachment.cs b/spine-csharp/src/Attachments/VertexAttachment.cs index 09b9d2b69..b513e37b8 100644 --- a/spine-csharp/src/Attachments/VertexAttachment.cs +++ b/spine-csharp/src/Attachments/VertexAttachment.cs @@ -61,8 +61,8 @@ namespace Spine { } /// - /// Transforms the attachment's local to world coordinates. If the slot has , - /// they are used to deform the vertices. + /// Transforms the attachment's local to world coordinates. If the slot's is + /// not empty, it is used to deform the vertices. /// /// See World transforms in the Spine /// Runtimes Guide. diff --git a/spine-csharp/src/Slot.cs b/spine-csharp/src/Slot.cs index 7cbda1da4..b190d5eff 100644 --- a/spine-csharp/src/Slot.cs +++ b/spine-csharp/src/Slot.cs @@ -122,8 +122,8 @@ namespace Spine { /// The current attachment for the slot, or null if the slot has no attachment. get { return attachment; } /// - /// Sets the slot's attachment and, if the attachment changed, resets and clears - /// . + /// Sets the slot's attachment and, if the attachment changed, resets and clears . + /// /// May be null. set { if (attachment == value) return;