From f2e8340a24a159aeb31a4836fea3e7680823cffc Mon Sep 17 00:00:00 2001 From: John Date: Fri, 25 Dec 2015 23:11:34 +0800 Subject: [PATCH] Optional fix code for events during mixing To maintain consistency across runtimes, this fix code is commented out. To use it, remove the old line and uncomment the fix line. --- spine-csharp/src/AnimationState.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spine-csharp/src/AnimationState.cs b/spine-csharp/src/AnimationState.cs index 97f8d3ade..3b1798563 100644 --- a/spine-csharp/src/AnimationState.cs +++ b/spine-csharp/src/AnimationState.cs @@ -113,7 +113,9 @@ namespace Spine { } else { float previousTime = previous.time; if (!previous.loop && previousTime > previous.endTime) previousTime = previous.endTime; - previous.animation.Apply(skeleton, previous.lastTime, previousTime, previous.loop, events); + previous.animation.Apply(skeleton, previous.lastTime, previousTime, previous.loop, null); + // Remove the line above, and uncomment the line below, to allow previous animations to fire events during mixing. + //previous.animation.Apply(skeleton, previous.lastTime, previousTime, previous.loop, events); previous.lastTime = previousTime; float alpha = current.mixTime / current.mixDuration * current.mix;