Browse Source

[csharp] Fixed deform timelines not mixing to/from setup pose.

https://github.com/EsotericSoftware/spine-runtimes/commit/ef6ccb84d316b7e9fc62b363fe39b206063523a7
John 8 years ago
parent
commit
3c194a5c9d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-csharp/src/Animation.cs

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

@@ -773,7 +773,7 @@ namespace Spine {
 			float[][] frameVertices = this.frameVertices;
 			int vertexCount = frameVertices[0].Length;
 
-			if (verticesArray.Count != vertexCount) alpha = 1; // Don't mix from uninitialized slot vertices.
+			if (verticesArray.Count != vertexCount && !setupPose) alpha = 1; // Don't mix from uninitialized slot vertices.
 			// verticesArray.SetSize(vertexCount) // Ensure size and preemptively set count.
 			if (verticesArray.Capacity < vertexCount) verticesArray.Capacity = vertexCount;
 			verticesArray.Count = vertexCount;