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

This commit is contained in:
badlogic 2017-06-04 11:07:04 +02:00
parent 57eab37e11
commit fcf9d3bb35

View File

@ -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.