mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Apply setup pose when before first frame for AnimationState rotation timeline apply.
This commit is contained in:
parent
75775bbdac
commit
d84a39ba90
@ -248,10 +248,12 @@ public class AnimationState {
|
||||
}
|
||||
|
||||
RotateTimeline rotateTimeline = (RotateTimeline)timeline;
|
||||
float[] frames = rotateTimeline.frames;
|
||||
if (time < frames[0]) return; // Time is before first frame.
|
||||
|
||||
Bone bone = skeleton.bones.get(rotateTimeline.boneIndex);
|
||||
float[] frames = rotateTimeline.frames;
|
||||
if (time < frames[0]) { // Time is before first frame.
|
||||
if (setupPose) bone.rotation = bone.data.rotation;
|
||||
return;
|
||||
}
|
||||
|
||||
float r2;
|
||||
if (time >= frames[frames.length - ENTRIES]) // Time is after last frame.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user