瀏覽代碼

[csharp] Ported AnimationState and Animation changes of commit 50bfb3a. See #1303.

Harald Csaszar 6 年之前
父節點
當前提交
0d30263f50
共有 3 個文件被更改,包括 6 次插入6 次删除
  1. 2 2
      spine-csharp/src/AnimationState.cs
  2. 2 2
      spine-csharp/src/Attachments/VertexAttachment.cs
  3. 2 2
      spine-csharp/src/Slot.cs

+ 2 - 2
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);
+				}
 			}
 		}
 

+ 2 - 2
spine-csharp/src/Attachments/VertexAttachment.cs

@@ -61,8 +61,8 @@ namespace Spine {
 		}
 
 		/// <summary>
-		/// Transforms the attachment's local <see cref="Vertices"/> to world coordinates. If the slot has <see cref="Slot.Deform"/>,
-		/// they are used to deform the vertices.
+		/// Transforms the attachment's local <see cref="Vertices"/> to world coordinates. If the slot's <see cref="Slot.Deform"/> is
+		/// not empty, it is used to deform the vertices.
 		/// <para />
 		/// See <a href="http://esotericsoftware.com/spine-runtime-skeletons#World-transforms">World transforms</a> in the Spine
 		/// Runtimes Guide.

+ 2 - 2
spine-csharp/src/Slot.cs

@@ -122,8 +122,8 @@ namespace Spine {
 			/// <summary>The current attachment for the slot, or null if the slot has no attachment.</summary>
 			get { return attachment; }
 			/// <summary>
-			/// Sets the slot's attachment and, if the attachment changed, resets <see cref="AttachmentTime"/> and clears
-			/// <see cref="AttachmentVertices">.</summary>
+			/// Sets the slot's attachment and, if the attachment changed, resets <see cref="AttachmentTime"/> and clears <see cref="Deform">.
+			/// </summary>
 			/// <param name="value">May be null.</param>
 			set {
 				if (attachment == value) return;