mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-19 08:16:41 +08:00
fix tabs
This commit is contained in:
parent
64cb985e93
commit
2fb6081a17
@ -413,14 +413,14 @@ function Animation.AttachmentTimeline.new ()
|
||||
end
|
||||
|
||||
local attachmentName = self.attachmentNames[frameIndex]
|
||||
local slot = skeleton.slotsByName[self.slotName]
|
||||
if attachmentName then
|
||||
if not slot.attachment then
|
||||
slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName))
|
||||
elseif attachmentName and slot.attachment.name ~= attachmentName then
|
||||
slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName))
|
||||
end
|
||||
local slot = skeleton.slotsByName[self.slotName]
|
||||
if attachmentName then
|
||||
if not slot.attachment then
|
||||
slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName))
|
||||
elseif attachmentName and slot.attachment.name ~= attachmentName then
|
||||
slot:setAttachment(skeleton:getAttachment(self.slotName, attachmentName))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user