Hi,
local attachment = slot.attachment
if attachment.type == spine.AttachmentType.region then
local image = images[slot]
if not attachment then
---
Attachment is gone, remove the image.
This second line will cause an error if the attachment is nil, but since the next if statement checks if the attachment is nil or not, leads me to believe that it should be possible to actually have a nil attachment, or am I doing something wrong?
The code segment is in the top of updateWorldTransform in spine.lua