mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
parent
d19a4b22db
commit
c1353efdd3
@ -242,6 +242,9 @@ namespace Spine {
|
||||
|
||||
static private void ApplyRotateTimeline (RotateTimeline rotateTimeline, Skeleton skeleton, float time, float alpha, bool setupPose,
|
||||
float[] timelinesRotation, int i, bool firstFrame) {
|
||||
|
||||
if (firstFrame) timelinesRotation[i] = 0;
|
||||
|
||||
if (alpha == 1) {
|
||||
rotateTimeline.Apply(skeleton, 0, time, null, 1, setupPose, false);
|
||||
return;
|
||||
@ -275,10 +278,6 @@ namespace Spine {
|
||||
float r1 = setupPose ? bone.data.rotation : bone.rotation;
|
||||
float total, diff = r2 - r1;
|
||||
if (diff == 0) {
|
||||
if (firstFrame) {
|
||||
timelinesRotation[i] = 0;
|
||||
total = 0;
|
||||
} else
|
||||
total = timelinesRotation[i];
|
||||
} else {
|
||||
diff -= (16384 - (int)(16384.499999999996 - diff / 360)) * 360;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user