From fcb878081c481bd63ca77735fbf2e88ab8b5b354 Mon Sep 17 00:00:00 2001 From: badlogic Date: Fri, 4 Nov 2016 14:53:07 +0100 Subject: [PATCH] [csharp] Last minute fix to AnimationState#applyRotateTimeline --- spine-csharp/src/AnimationState.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spine-csharp/src/AnimationState.cs b/spine-csharp/src/AnimationState.cs index 1eb7bed27..d0d4b50be 100644 --- a/spine-csharp/src/AnimationState.cs +++ b/spine-csharp/src/AnimationState.cs @@ -251,9 +251,12 @@ namespace Spine { } float[] frames = rotateTimeline.frames; - if (time < frames[0]) return; // Time is before first frame. Bone bone = skeleton.bones.Items[rotateTimeline.boneIndex]; + if (time < frames[0]) { + if (setupPose) bone.rotation = bone.data.rotation; + return; + } float r2; if (time >= frames[frames.Length - RotateTimeline.ENTRIES]) // Time is after last frame.