mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[as3] Last minute fix to AnimationState#applyRotateTimeline
This commit is contained in:
parent
e8d363435d
commit
6d77abd8ff
Binary file not shown.
@ -235,10 +235,12 @@ public class AnimationState {
|
||||
}
|
||||
|
||||
var rotateTimeline:RotateTimeline = RotateTimeline(timeline);
|
||||
var frames:Vector.<Number> = rotateTimeline.frames;
|
||||
if (time < frames[0]) return; // Time is before first frame.
|
||||
|
||||
var frames:Vector.<Number> = rotateTimeline.frames;
|
||||
var bone:Bone = skeleton.bones[rotateTimeline.boneIndex];
|
||||
if (time < frames[0]) {
|
||||
if (setupPose) bone.rotation = bone.data.rotation;
|
||||
return;
|
||||
}
|
||||
|
||||
var r2:Number;
|
||||
if (time >= frames[frames.length - RotateTimeline.ENTRIES]) // Time is after last frame.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user