mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
Don't mix from uninitialized slot vertices.
Related to 27bab7bb951650c50c98b3b9b7bcc1fcb90c1570.
This commit is contained in:
parent
8bc8595290
commit
e114f04bba
@ -612,11 +612,11 @@ function Animation.FfdTimeline.new ()
|
||||
local frameVertices = self.frameVertices
|
||||
local vertexCount = #frameVertices[0]
|
||||
local vertices = slot.attachmentVertices
|
||||
if not vertices or #vertices < vertexCount then
|
||||
vertices = {}
|
||||
slot.attachmentVertices = vertices
|
||||
end
|
||||
if #vertices ~= vertexCount then
|
||||
if not vertices or #vertices ~= vertexCount then
|
||||
if #vertices < vertexCount then
|
||||
vertices = {}
|
||||
slot.attachmentVertices = vertices
|
||||
end
|
||||
alpha = 1 -- Don't mix from uninitialized slot vertices.
|
||||
end
|
||||
slot.attachmentVerticesCount = vertexCount
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user