mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
[lua] Closes 760, passed wrong type to setAttachment
This commit is contained in:
parent
752516e00f
commit
2888ece970
@ -604,7 +604,7 @@ function Animation.AttachmentTimeline.new (frameCount)
|
|||||||
if not attachmentName then
|
if not attachmentName then
|
||||||
slot:setAttachment(nil)
|
slot:setAttachment(nil)
|
||||||
else
|
else
|
||||||
skeleton:setAttachment(skeleton:getAttachmentByIndex(self.slotIndex, attachmentName))
|
slot:setAttachment(skeleton:getAttachmentByIndex(self.slotIndex, attachmentName))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
@ -619,9 +619,9 @@ function Animation.AttachmentTimeline.new (frameCount)
|
|||||||
|
|
||||||
attachmentName = self.attachmentNames[frameIndex]
|
attachmentName = self.attachmentNames[frameIndex]
|
||||||
if not attachmentName then
|
if not attachmentName then
|
||||||
skeleton.slots[self.slotIndex]:setAttachment(nil)
|
slot:setAttachment(nil)
|
||||||
else
|
else
|
||||||
skeleton.slots[self.slotIndex]:setAttachment(skeleton:getAttachmentByIndex(self.slotIndex, attachmentName))
|
slot:setAttachment(skeleton:getAttachmentByIndex(self.slotIndex, attachmentName))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user