mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[c] Fixes formatting for SkeletonJson.c
This commit is contained in:
parent
fbb33e594e
commit
e90eefc2c4
@ -293,7 +293,7 @@ void spIkConstraint_apply2(spBone *parent, spBone *child, float targetX, float t
|
||||
}
|
||||
}
|
||||
}
|
||||
break_outer : {
|
||||
break_outer: {
|
||||
float os = ATAN2(cy, cx) * s2;
|
||||
float rotation = parent->arotation;
|
||||
a1 = (a1 - os) * RAD_DEG + o1 - rotation;
|
||||
|
||||
@ -408,7 +408,7 @@ static const char *parse_object(Json *item, const char *value) {
|
||||
if (*value != ':') {
|
||||
ep = value;
|
||||
return 0;
|
||||
} /* fail! */
|
||||
} /* fail! */
|
||||
value = skip(parse_value(child, skip(value + 1))); /* skip any spacing, get the value. */
|
||||
if (!value) return 0;
|
||||
item->size = 1;
|
||||
@ -428,7 +428,7 @@ static const char *parse_object(Json *item, const char *value) {
|
||||
if (*value != ':') {
|
||||
ep = value;
|
||||
return 0;
|
||||
} /* fail! */
|
||||
} /* fail! */
|
||||
value = skip(parse_value(child, skip(value + 1))); /* skip any spacing, get the value. */
|
||||
if (!value) return 0;
|
||||
item->size++;
|
||||
|
||||
@ -434,7 +434,7 @@ static spAnimation *_spSkeletonJson_readAnimation(spSkeletonJson *self, Json *ro
|
||||
|
||||
for (frame = 0, bezier = 0;; ++frame) {
|
||||
float time2;
|
||||
spRGB2Timeline_setFrame(timeline, frame, time, color.r, color.g, color.b, color2.r, color2.g,
|
||||
spRGB2Timeline_setFrame(timeline, frame, time, color.r, color.g, color.b, color2.r, color2.g,
|
||||
color2.b);
|
||||
nextMap = keyMap->next;
|
||||
if (!nextMap) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user