mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[csharp] Last minute fix to AnimationState#applyRotateTimeline
This commit is contained in:
parent
6d77abd8ff
commit
fcb878081c
@ -251,9 +251,12 @@ namespace Spine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
float[] frames = rotateTimeline.frames;
|
float[] frames = rotateTimeline.frames;
|
||||||
if (time < frames[0]) return; // Time is before first frame.
|
|
||||||
|
|
||||||
Bone bone = skeleton.bones.Items[rotateTimeline.boneIndex];
|
Bone bone = skeleton.bones.Items[rotateTimeline.boneIndex];
|
||||||
|
if (time < frames[0]) {
|
||||||
|
if (setupPose) bone.rotation = bone.data.rotation;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
float r2;
|
float r2;
|
||||||
if (time >= frames[frames.Length - RotateTimeline.ENTRIES]) // Time is after last frame.
|
if (time >= frames[frames.Length - RotateTimeline.ENTRIES]) // Time is after last frame.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user