mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +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
|
||||||
end
|
end
|
||||||
self:queueEvents(current, animationTime)
|
self:queueEvents(current, animationTime)
|
||||||
|
self.events = {};
|
||||||
current.nextAnimationLast = animationTime
|
current.nextAnimationLast = animationTime
|
||||||
current.nextTrackLast = current.trackTime
|
current.nextTrackLast = current.trackTime
|
||||||
end
|
end
|
||||||
@ -374,7 +375,8 @@ function AnimationState:applyMixingFrom (entry, skeleton)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
self:queueEvents(from, animationTime)
|
if (entry.mixDuration > 0) then self:queueEvents(from, animationTime) end
|
||||||
|
self.events = {};
|
||||||
from.nextAnimationLast = animationTime
|
from.nextAnimationLast = animationTime
|
||||||
from.nextTrackLast = from.trackTime
|
from.nextTrackLast = from.trackTime
|
||||||
|
|
||||||
@ -488,7 +490,6 @@ function AnimationState:queueEvents (entry, animationTime)
|
|||||||
end
|
end
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
self.events = {}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function AnimationState:clearTracks ()
|
function AnimationState:clearTracks ()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user