mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
Fix -Wshadow warning when compiling with Clang (#607)
This commit is contained in:
parent
5cceb22406
commit
fc8505ff81
@ -267,7 +267,7 @@ void _spRotateTimeline_apply (const spTimeline* timeline, spSkeleton* skeleton,
|
||||
bone = skeleton->bones[self->boneIndex];
|
||||
|
||||
if (time >= self->frames[self->framesCount - 2]) { /* Time is after last frame. */
|
||||
float amount = bone->data->rotation + self->frames[self->framesCount - 1] - bone->rotation;
|
||||
amount = bone->data->rotation + self->frames[self->framesCount - 1] - bone->rotation;
|
||||
while (amount > 180)
|
||||
amount -= 360;
|
||||
while (amount < -180)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user