Преглед на файлове

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

badlogic преди 7 години
родител
ревизия
8e7b8cc58b
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      spine-lua/AnimationState.lua

+ 1 - 0
spine-lua/AnimationState.lua

@@ -413,6 +413,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