mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[lua] Fixed bug in Slot, attachment vertices didn't get cleared upon Slot:setAttachment call
This commit is contained in:
parent
676b740269
commit
755425d4be
@ -46,8 +46,7 @@ function Slot.new (data, bone)
|
|||||||
darkColor = nil,
|
darkColor = nil,
|
||||||
attachment = nil,
|
attachment = nil,
|
||||||
attachmentTime = 0,
|
attachmentTime = 0,
|
||||||
attachmentVertices = {},
|
attachmentVertices = {}
|
||||||
attachmentVerticesCount = 0
|
|
||||||
}
|
}
|
||||||
setmetatable(self, Slot)
|
setmetatable(self, Slot)
|
||||||
|
|
||||||
@ -62,7 +61,7 @@ function Slot:setAttachment (attachment)
|
|||||||
if self.attachment == attachment then return end
|
if self.attachment == attachment then return end
|
||||||
self.attachment = attachment
|
self.attachment = attachment
|
||||||
self.attachmentTime = self.bone.skeleton.time
|
self.attachmentTime = self.bone.skeleton.time
|
||||||
self.attachmentVerticesCount = 0
|
self.attachmentVertices = {};
|
||||||
end
|
end
|
||||||
|
|
||||||
function Slot:setAttachmentTime (time)
|
function Slot:setAttachmentTime (time)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user