Эх сурвалжийг харах

[lua] Fixes #1195, events on higher tracks did not fire.

badlogic 7 жил өмнө
parent
commit
dc6601f1e2

+ 1 - 0
spine-lua/AnimationState.lua

@@ -366,6 +366,7 @@ function AnimationState:apply (skeleton)
 			end
 			end
 			self:queueEvents(current, animationTime)
 			self:queueEvents(current, animationTime)
 			self.events = {};
 			self.events = {};
+			events = self.events;
 			current.nextAnimationLast = animationTime
 			current.nextAnimationLast = animationTime
 			current.nextTrackLast = current.trackTime
 			current.nextTrackLast = current.trackTime
 		end
 		end