mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 09:38:44 +08:00
[lua] Closes 1697, call to setAttachment in wrong location.
This commit is contained in:
parent
297fc2f438
commit
6b4c7aeda3
@ -520,8 +520,8 @@ function AnimationState:applyAttachmentTimeline(timeline, skeleton, time, blend,
|
||||
frameIndex = zlen(frames) - 1;
|
||||
else
|
||||
frameIndex = Animation.binarySearch(frames, time, 1) - 1;
|
||||
self:setAttachment(skeleton, slot, timeline.attachmentNames[frameIndex], attachments)
|
||||
end
|
||||
self:setAttachment(skeleton, slot, timeline.attachmentNames[frameIndex], attachments)
|
||||
end
|
||||
|
||||
-- If an attachment wasn't set (ie before the first frame or attachments is false), set the setup attachment later.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user