From fcf9d3bb35b50c08020581cb4a91ac68065d6c59 Mon Sep 17 00:00:00 2001 From: badlogic Date: Sun, 4 Jun 2017 11:07:04 +0200 Subject: [PATCH] [lua] Fixed deform timelines not mixing from/to setup pose. #920 --- spine-lua/Animation.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-lua/Animation.lua b/spine-lua/Animation.lua index 21152a388..20a82d503 100644 --- a/spine-lua/Animation.lua +++ b/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.