mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
Use display.remove().
This commit is contained in:
parent
9780af9524
commit
b272808a2d
@ -93,7 +93,7 @@ function spine.Skeleton.new (skeletonData, group)
|
||||
local attachment = slot.attachment
|
||||
if not attachment then -- Attachment is gone, remove the image.
|
||||
if image then
|
||||
image:removeSelf()
|
||||
display.remove(image)
|
||||
images[slot] = nil
|
||||
end
|
||||
elseif attachment.type == spine.AttachmentType.region then
|
||||
@ -102,7 +102,7 @@ function spine.Skeleton.new (skeletonData, group)
|
||||
image.lastR, image.lastA = nil, nil
|
||||
image.attachment = attachment
|
||||
else -- If not modified, remove the image and it will be recreated.
|
||||
image:removeSelf()
|
||||
display.remove(image)
|
||||
images[slot] = nil
|
||||
image = nil
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user