mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-07 11:16:53 +08:00
[lua] Closes #739, bug in Skeleton:getBounds, need to nil check attachment
This commit is contained in:
parent
315e2eef40
commit
e93e9e77c4
@ -439,7 +439,7 @@ function Skeleton:getBounds(offset, size)
|
|||||||
for i, slot in ipairs(drawOrder) do
|
for i, slot in ipairs(drawOrder) do
|
||||||
local vertices = nil
|
local vertices = nil
|
||||||
local attachment = slot.attachment
|
local attachment = slot.attachment
|
||||||
if attachment.type == AttachmentType.region or attachment.type == AttachmentType.mesh then
|
if attachment and (attachment.type == AttachmentType.region or attachment.type == AttachmentType.mesh) then
|
||||||
vertices = attachment:updateWorldVertices(slot, false);
|
vertices = attachment:updateWorldVertices(slot, false);
|
||||||
end
|
end
|
||||||
if vertices then
|
if vertices then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user