浏览代码

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

https://github.com/EsotericSoftware/spine-runtimes/commit/ef6ccb84d316b7e9fc62b363fe39b206063523a7
John 8 年之前
父节点
当前提交
3c194a5c9d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;