mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[lua] Ported latest AnimationState changes, see c512ee5d595076842cbb12d95a3a7f06792b81d1
This commit is contained in:
parent
ac48da3a14
commit
aba6a4b74c
@ -327,6 +327,7 @@ function AnimationState:apply (skeleton)
|
||||
end
|
||||
end
|
||||
self:queueEvents(current, animationTime)
|
||||
self.events = {};
|
||||
current.nextAnimationLast = animationTime
|
||||
current.nextTrackLast = current.trackTime
|
||||
end
|
||||
@ -374,7 +375,8 @@ function AnimationState:applyMixingFrom (entry, skeleton)
|
||||
end
|
||||
end
|
||||
|
||||
self:queueEvents(from, animationTime)
|
||||
if (entry.mixDuration > 0) then self:queueEvents(from, animationTime) end
|
||||
self.events = {};
|
||||
from.nextAnimationLast = animationTime
|
||||
from.nextTrackLast = from.trackTime
|
||||
|
||||
@ -488,7 +490,6 @@ function AnimationState:queueEvents (entry, animationTime)
|
||||
end
|
||||
i = i + 1
|
||||
end
|
||||
self.events = {}
|
||||
end
|
||||
|
||||
function AnimationState:clearTracks ()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user