浏览代码

[lua] Fixed deform timelines not mixing from/to setup pose. #920

badlogic 8 年之前
父节点
当前提交
fcf9d3bb35
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-lua/Animation.lua

+ 1 - 1
spine-lua/Animation.lua

@@ -769,7 +769,7 @@ function Animation.DeformTimeline.new (frameCount)
 		local frameVertices = self.frameVertices
 		local vertexCount = #(frameVertices[0])
 
-		if (#verticesArray ~= vertexCount) then alpha = 1 end -- Don't mix from uninitialized slot vertices.
+		if (#verticesArray ~= vertexCount and not setupPose) then alpha = 1 end -- Don't mix from uninitialized slot vertices.
 		local vertices = utils.setArraySize(verticesArray, vertexCount)
 
 		if time >= frames[zlen(frames) - 1] then -- Time is after last frame.