mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[cpp] Formatting
This commit is contained in:
parent
88a26374fe
commit
b491d8ba4d
@ -208,11 +208,11 @@ void spDebug_printTimeline(spTimeline *timeline) {
|
|||||||
case SP_TIMELINE_SEQUENCE: {
|
case SP_TIMELINE_SEQUENCE: {
|
||||||
spSequenceTimeline *t = (spSequenceTimeline *) timeline;
|
spSequenceTimeline *t = (spSequenceTimeline *) timeline;
|
||||||
_spDebug_printTimelineBase(&t->super);
|
_spDebug_printTimelineBase(&t->super);
|
||||||
} // fallthrough
|
}// fallthrough
|
||||||
case SP_TIMELINE_INHERIT: {
|
case SP_TIMELINE_INHERIT: {
|
||||||
spInheritTimeline *t = (spInheritTimeline *) timeline;
|
spInheritTimeline *t = (spInheritTimeline *) timeline;
|
||||||
_spDebug_printTimelineBase(&t->super);
|
_spDebug_printTimelineBase(&t->super);
|
||||||
} // fallthrough
|
}// fallthrough
|
||||||
default: {
|
default: {
|
||||||
_spDebug_printTimelineBase(timeline);
|
_spDebug_printTimelineBase(timeline);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -98,7 +98,7 @@ void spIkConstraint_apply1(spBone *bone, float targetX, float targetY, int /*boo
|
|||||||
pb = -sc * s * bone->skeleton->scaleX;
|
pb = -sc * s * bone->skeleton->scaleX;
|
||||||
pd = sa * s * bone->skeleton->scaleY;
|
pd = sa * s * bone->skeleton->scaleY;
|
||||||
rotationIK += ATAN2(sc, sa) * RAD_DEG;
|
rotationIK += ATAN2(sc, sa) * RAD_DEG;
|
||||||
} // fallthrough
|
}// fallthrough
|
||||||
default: {
|
default: {
|
||||||
float x = targetX - p->worldX, y = targetY - p->worldY;
|
float x = targetX - p->worldX, y = targetY - p->worldY;
|
||||||
float d = pa * pd - pb * pc;
|
float d = pa * pd - pb * pc;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user